SecurityTokenHandlerCollection.CanReadToken Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether a specified token can be read by one of the handlers in the collection.
CanReadToken(String) |
Returns a value that indicates whether the specified string representation of a token can be read by one of the handlers in this collection. |
CanReadToken(XmlReader) |
Returns a value that indicates whether the specified token can be read by one of the handlers in this collection. |
Returns a value that indicates whether the specified string representation of a token can be read by one of the handlers in this collection.
public:
bool CanReadToken(System::String ^ tokenString);
public bool CanReadToken (string tokenString);
member this.CanReadToken : string -> bool
Public Function CanReadToken (tokenString As String) As Boolean
Parameters
- tokenString
- String
The token represented as a string.
Returns
true
if the collection contains a token handler that can read the specified token; otherwise false
.
Exceptions
tokenString
is null
or an empty string.
Remarks
The method invokes the SecurityTokenHandler.CanReadToken(String) method on the token handlers (SecurityTokenHandler) in the collection to determine whether the token can be read.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Returns a value that indicates whether the specified token can be read by one of the handlers in this collection.
public:
bool CanReadToken(System::Xml::XmlReader ^ reader);
public bool CanReadToken (System.Xml.XmlReader reader);
member this.CanReadToken : System.Xml.XmlReader -> bool
Public Function CanReadToken (reader As XmlReader) As Boolean
Parameters
- reader
- XmlReader
An XML reader positioned at the start element. The reader should not be advanced.
Returns
true
if the token can be read; otherwise false
.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: