Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SamlSecurityTokenRequirement
Dim audienceUriMode As AudienceUriMode
Dim token As SecurityToken
Dim returnValue As Boolean

returnValue = instance.ShouldEnforceAudienceRestriction(audienceUriMode, token)

Syntax

Visual Basic
Public Overridable Function ShouldEnforceAudienceRestriction ( _
		audienceUriMode As AudienceUriMode, _
		token As SecurityToken _
) As Boolean
C#
public virtual bool ShouldEnforceAudienceRestriction (
		AudienceUriMode audienceUriMode,
		SecurityToken token
)
C++
public:
virtual bool ShouldEnforceAudienceRestriction (
		AudienceUriMode audienceUriMode, 
		SecurityToken^ token
)
J#
public boolean ShouldEnforceAudienceRestriction (
		AudienceUriMode audienceUriMode, 
		SecurityToken token
)
JScript
public function ShouldEnforceAudienceRestriction (
		audienceUriMode : AudienceUriMode, 
		token : SecurityToken
) : boolean

Parameters

audienceUriMode
token

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also