Share via


HttpRequestMessageExtensions.GetSecurityMessageProperty Method

Gets the current SecurityMessageProperty stored in the request message properties for the given request.

Namespace:  System.Net.Http
Assembly:  System.Web.Http.SelfHost (in System.Web.Http.SelfHost.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetSecurityMessageProperty ( _
    request As HttpRequestMessage _
) As SecurityMessageProperty
'Usage
Dim request As HttpRequestMessage 
Dim returnValue As SecurityMessageProperty 

returnValue = request.GetSecurityMessageProperty()
public static SecurityMessageProperty GetSecurityMessageProperty(
    this HttpRequestMessage request
)
[ExtensionAttribute]
public:
static SecurityMessageProperty^ GetSecurityMessageProperty(
    HttpRequestMessage^ request
)
static member GetSecurityMessageProperty : 
        request:HttpRequestMessage -> SecurityMessageProperty
public static function GetSecurityMessageProperty(
    request : HttpRequestMessage
) : SecurityMessageProperty

Parameters

  • request
    Type: HttpRequestMessage

    The request.

Return Value

Type: System.ServiceModel.Security.SecurityMessageProperty
The current SecurityMessageProperty.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also

Reference

HttpRequestMessageExtensions Class

System.Net.Http Namespace