Fork me on GitHub
Show / Hide Table of Contents

Class MetadataHelperExtensions

Adds some helpful extension methods.

Inheritance
System.Object
MetadataHelperExtensions
Namespace: OpenGraphNet.Metadata
Assembly: OpenGraphNet.dll
Syntax
public static class MetadataHelperExtensions : Object

Methods

Name(IList<PropertyMetadata>)

Names the specified metadata.

Declaration
public static string Name(this IList<PropertyMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<PropertyMetadata> metadata

The metadata.

Returns
Type Description
System.String

The name of the first item in the list.

Name(IList<StructuredMetadata>)

Names the specified metadata.

Declaration
public static string Name(this IList<StructuredMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<StructuredMetadata> metadata

The metadata.

Returns
Type Description
System.String

The name of the first item in the list.

Namespace(IList<PropertyMetadata>)

Namespaces the specified metadata.

Declaration
public static OpenGraphNamespace Namespace(this IList<PropertyMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<PropertyMetadata> metadata

The metadata.

Returns
Type Description
OpenGraphNamespace

The namespace of the first item in the list.

Namespace(IList<StructuredMetadata>)

Namespaces the specified metadata.

Declaration
public static OpenGraphNamespace Namespace(this IList<StructuredMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<StructuredMetadata> metadata

The metadata.

Returns
Type Description
OpenGraphNamespace

The namespace of the first item in the list.

Value(IList<PropertyMetadata>)

Values the specified metadata.

Declaration
public static string Value(this IList<PropertyMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<PropertyMetadata> metadata

The metadata.

Returns
Type Description
System.String

The value of the first item in the list.

Value(IList<StructuredMetadata>)

Values the specified metadata.

Declaration
public static string Value(this IList<StructuredMetadata> metadata)
Parameters
Type Name Description
System.Collections.Generic.IList<StructuredMetadata> metadata

The metadata.

Returns
Type Description
System.String

The value of the first item in the list.

Back to top Copyright © 2021 - Geoff Horsey Mastodon