WSTrustServiceHost Constructor (WSTrustServiceContract^, array<Uri^>^)

.NET Framework (current version)
 

Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service contract.

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

public:
WSTrustServiceHost(
	WSTrustServiceContract^ serviceContract,
	... array<Uri^>^ baseAddresses
)

Parameters

serviceContract
Type: System.ServiceModel.Security::WSTrustServiceContract^

A WSTrustServiceContract that represents the service contract to use.

baseAddresses
Type: array<System::Uri^>^

An array of Uri that contains the base addresses for the service host.

Exception Condition
ArgumentNullException

baseAddresses is null.

-or-

serviceContract is null.

.NET Framework
Available since 4.5
Return to top
Show: