ServiceKnownTypeAttribute Constructor (Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ServiceKnownTypeAttribute class with the specified known type.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- type
- Type: System.Type
Specifies a known type that can be used in a parameter or return value defined by the service.
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.
Show: