ServiceKnownTypeAttribute Constructor (Type^)

 

Initializes a new instance of the ServiceKnownTypeAttribute class with the specified known type.

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

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.

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.

No code example is currently available or this language may not be supported.

Universal Windows Platform
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
Return to top
Show: