Namespace Property
Collapse the table of content
Expand the table of content

ServiceContractAttribute.Namespace Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the namespace of the <portType> element in Web Services Description Language (WSDL).

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Public Property Namespace As String

Property Value

Type: System.String
The WSDL namespace of the <portType> element. The default value is "http://tempuri.org".


    'The following code contains an example of a duplex contract that contains a callback contract.
	<ServiceContract(Name := "SampleContract", Namespace := "http://sample.service.contract", CallbackContract := GetType(IDuplexClient))> _
	Public Interface IDuplexService
		<OperationContract(IsOneWay := True)> _
		Sub Order(ByVal name As String, ByVal quantity As Integer)
	End Interface

	<ServiceContract> _
	Public Interface IDuplexClient
		<OperationContract(IsOneWay := True)> _
		Sub Receive(ByVal order As Order)
	End Interface


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft