Fork me on GitHub
Show / Hide Table of Contents

Class StructuredMetadata

A root structured element.

Inheritance
System.Object
MetadataBase
StructuredMetadata
NullMetadata
Inherited Members
MetadataBase.ToString()
MetadataBase.Namespace
MetadataBase.Name
MetadataBase.Value
Namespace: OpenGraphNet.Metadata
Assembly: OpenGraphNet.dll
Syntax
public class StructuredMetadata : MetadataBase

Constructors

StructuredMetadata(OpenGraphNamespace, String, String)

Initializes a new instance of the StructuredMetadata class.

Declaration
public StructuredMetadata(OpenGraphNamespace ns, string name, string value)
Parameters
Type Name Description
OpenGraphNamespace ns

The namespace.

System.String name

The name.

System.String value

The value.

Properties

Properties

Gets the child elements.

Declaration
public IDictionary<string, IList<PropertyMetadata>> Properties { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IList<PropertyMetadata>>

The child elements.

Methods

AddProperty(PropertyMetadata)

Adds the property.

Declaration
public void AddProperty(PropertyMetadata element)
Parameters
Type Name Description
PropertyMetadata element

The element.

AddProperty(String, String)

Adds the property.

Declaration
public void AddProperty(string name, string value)
Parameters
Type Name Description
System.String name

The name.

System.String value

The value.

CreateDocument()

Creates the document.

Declaration
protected override HtmlDocument CreateDocument()
Returns
Type Description
HtmlAgilityPack.HtmlDocument

The HTML snippet that represents this element.

Overrides
MetadataBase.CreateDocument()

IsMyProperty(String)

Determines whether the specified property key is a property of this element.

Declaration
public bool IsMyProperty(string propertyKey)
Parameters
Type Name Description
System.String propertyKey

The property key.

Returns
Type Description
System.Boolean

true if the specified property key is a child property of this element; otherwise, false.

See Also

OpenGraphNet.Metadata
Back to top Copyright © 2021 - Geoff Horsey Mastodon