ClientCredentialType Property

MessageSecurityOverHttp::ClientCredentialType Property


Specifies the type of client credential used for client authentication in the wsHttpBinding or wsDualHttpBinding bindings.

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

property MessageCredentialType ClientCredentialType {
	MessageCredentialType get();
	void set(MessageCredentialType value);

Exception Condition

The value of ClientCredentialType is not a valid MessageCredentialType.

This property is used to set the MessageCredentialType that is used to authenticate the caller at the service. Valid types are:

The following code sets this property.

Snippet section 4 of code snippet {"project_id":"3fedad16-eaf1-41a6-8f96-0c1949c68f32","entity_id":"01d4cfef-3d26-4b03-97d2-aae490284c3b","entity_type":"CodeSnippet","locale":"en-US"} in source file ({"filename":"/cs/secureservice.cs","blob_type":"Source","blob_id":"-002fcs-002fsecureservice-002ecs","blob_revision":2}) overlaps with other snippet sections. Ensure the tags are placed correctly.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft