Export (0) Print
Expand All

GetMetadata Method

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.

ExceptionCondition
System..::..ObjectDisposedException

The configuration manager is nullNothingnullptrunita null reference (Nothing in Visual Basic).

System..::..NotSupportedException

metadataType is other than "ServiceModel".

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

Community Additions

ADD
Show:
© 2014 Microsoft