Class MetadataBase
Represents an Open Graph meta element.
Namespace: OpenGraphNet.Metadata
Assembly: OpenGraphNet.dll
Syntax
public abstract class MetadataBase : Object
Constructors
MetadataBase(OpenGraphNamespace, String, String)
Initializes a new instance of the MetadataBase class.
Declaration
protected MetadataBase(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
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Namespace
Gets or sets the namespace.
Declaration
public OpenGraphNamespace Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenGraphNamespace | The namespace. |
Value
Gets the values.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The values. |
Methods
CreateDocument()
Creates the document.
Declaration
protected virtual HtmlDocument CreateDocument()
Returns
| Type | Description |
|---|---|
| HtmlAgilityPack.HtmlDocument | The HTML snippet that represents this element. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A System.String that represents this instance. |
Operators
Implicit(MetadataBase to String)
Performs an implicit conversion from MetadataBase to System.String.
Declaration
public static implicit operator string (MetadataBase element)
Parameters
| Type | Name | Description |
|---|---|---|
| MetadataBase | element | The element. |
Returns
| Type | Description |
|---|---|
| System.String | The result of the conversion. |
