Schema.net - How to build using VB

安稳与你 提交于 2020-01-06 07:10:10

问题


I'm trying to implement Structured Data on my website. I pulled Schema.net into my Project, and am trying to implment.

I'm completely confused on how to implement some data types and am looking for help. Here's the Schema website, with examples in C#:

https://rehansaeed.com/

I am able to setup several tags in VB:

 Dim website As New WebSite()
        website.AlternateName = "An Alternative Name"
        website.Version = "1"
        website.Headline = "title"
        website.Genre = "Music"

    dim jsonLd = website.ToString()

My problem is that I need to use some other tags, that are very confusing. Example:

website.DateCreated '
website.author 'As New Values(Of Organization, Person) 

website.datecreated is defined as (New OneOrMany(Of DateTimeOffset?))

website.author is defined as (As New Values(Of Organization, Person))

Question: How do I write a value into both items?

ANSWER

Answered here: How to assign data to OneOrMany(Of DateTimeOffset?) Data structure

来源:https://stackoverflow.com/questions/55465601/schema-net-how-to-build-using-vb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!