InstanceContext Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the InstanceContext class for a specified object that implements the service instance.
Namespace: System.ServiceModel
Assembly: System.ServiceModel.Extensions (in System.ServiceModel.Extensions.dll)
Syntax
'Declaration
Public Sub New ( _
implementation As Object _
)
public InstanceContext(
Object implementation
)
Parameters
- implementation
Type: System.Object
The object that implements the serviceinstance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | implementation is nulla null reference (Nothing in Visual Basic). |
Remarks
This sets the service host associated with the instance context to nulla null reference (Nothing in Visual Basic).
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.