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


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.


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

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions