ServiceKnownTypeAttribute Constructor (Type)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the ServiceKnownTypeAttribute class with the specified known type.
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public Sub New ( _
type As Type _
)
public ServiceKnownTypeAttribute(
Type type
)
Parameters
- type
Type: System.Type
Specifies a known type that can be used in a parameter or return value defined by the service.
Remarks
The ServiceKnownTypeAttribute can be applied several times to a method, with each application naming a different known type that may be present in the object graph returned by the method.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.