Edit

Share via


SecurityMessageProperty.ServiceSecurityContext Property

Definition

Gets or sets the ServiceSecurityContext for this message.

public:
 property System::ServiceModel::ServiceSecurityContext ^ ServiceSecurityContext { System::ServiceModel::ServiceSecurityContext ^ get(); void set(System::ServiceModel::ServiceSecurityContext ^ value); };
public System.ServiceModel.ServiceSecurityContext ServiceSecurityContext { get; set; }
member this.ServiceSecurityContext : System.ServiceModel.ServiceSecurityContext with get, set
Public Property ServiceSecurityContext As ServiceSecurityContext

Property Value

The ServiceSecurityContext object for this message.

Remarks

Use this class to obtain information about the runtime security context. A security context is created when a client is successfully authenticated. The security information from the client and for the current service instance can be obtained from an instance of this class.

A common use of the class is to retrieve the current set of claims for the purpose of authorizing a client when accessing a method.

Applies to