ServerManager.GetMetadata Method (String)

IIS 7.0
 

Returns metadata values from the server manager.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public object GetMetadata(
	string metadataType
)

Parameters

metadataType
Type: System.String

The name of the metadata being requested.

Return Value

Type: System.Object

The value of the requested metadata.

Exception Condition
System.ObjectDisposedException

The configuration manager is null.

System.NotSupportedException

metadataType is other than "ServiceModel".

The GetMetadata method returns the service model from the configuration manager.

Return to top
Show: