Fork me on GitHub
Show / Hide Table of Contents

Class NamespaceRegistry

A singleton to define supported namespaces.

Inheritance
System.Object
NamespaceRegistry
Namespace: OpenGraphNet.Namespaces
Assembly: OpenGraphNet.dll
Syntax
public sealed class NamespaceRegistry : Object

Properties

DefaultNamespace

Gets the default namespace.

Declaration
public static OpenGraphNamespace DefaultNamespace { get; }
Property Value
Type Description
OpenGraphNamespace

The default namespace.

Instance

Gets the instance.

Declaration
public static NamespaceRegistry Instance { get; }
Property Value
Type Description
NamespaceRegistry

The instance.

Namespaces

Gets the namespaces.

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

The namespaces.

Methods

AddNamespace(String, String, String[])

Adds the namespace.

Declaration
public void AddNamespace(string prefix, string schemaUri, params string[] requiredElements)
Parameters
Type Name Description
System.String prefix

The prefix.

System.String schemaUri

The schema URI.

System.String[] requiredElements

The required elements.

RemoveNamespace(String)

Removes the namespace.

Declaration
public void RemoveNamespace(string prefix)
Parameters
Type Name Description
System.String prefix

The prefix.

Back to top Copyright © 2021 - Geoff Horsey Mastodon