ServerManager.SetMetadata Method (String, Object)

IIS 7.0
 

Adds or changes the metadata for the current server manager.

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

public void SetMetadata(
	string metadataType,
	object value
)

Parameters

metadataType
Type: System.String

The name of the metadata being set.

value
Type: System.Object

The new value of the metadata.

Exception Condition
System.ObjectDisposedException

The configuration manager is null.

System.NotSupportedException

metadataType is other than "ServiceModel".

Return to top
Show: