ServiceKnownTypeAttribute Constructor (Type^)
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.
The following example applies the ServiceKnownTypeAttribute attribute to an interface where the attribute specifies the type to include.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0