Class StructuredMetadata
A root structured element.
Inherited Members
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
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 |
|