This topic has not yet been rated - Rate this topic

MetadataSection.CreateFromServiceDescription Method

Returns a MetadataSection that contains the specified System.ServiceModel.Description.ServiceDescription.

Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in system.servicemodel.dll)

public static MetadataSection CreateFromServiceDescription (
	ServiceDescription serviceDescription
)
public static MetadataSection CreateFromServiceDescription (
	ServiceDescription serviceDescription
)
public static function CreateFromServiceDescription (
	serviceDescription : ServiceDescription
) : MetadataSection
Not applicable.

Parameters

serviceDescription

The System.ServiceModel.Description.ServiceDescription used to create a MetadataSection object.

Return Value

A MetadataSection that contains the specified System.ServiceModel.Description.ServiceDescription.
Exception typeCondition

ArgumentNullException

The serviceDescription is a null reference (Nothing in Visual Basic).

Use this static factory method to quickly create a MetadataSection for a WSDL document. The Dialect property is assigned the value of ServiceDescriptionDialect and the Identifier property is assigned the value of the target namespace of the WSDL document.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.