ServiceKnownTypeAttribute Constructor (Type)
Collapse the table of content
Expand the table of content

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.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft