Share via


SPClaim.IsClaimXmlSafeCharacter method

Determines whether a character in a claim is a safe for purposes of XML serialization.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function IsClaimXmlSafeCharacter ( _
    character As Char _
) As Boolean
'Usage
Dim character As Char
Dim returnValue As Boolean

returnValue = SPClaim.IsClaimXmlSafeCharacter(character)
public static bool IsClaimXmlSafeCharacter(
    char character
)

Parameters

Return value

Type: System.Boolean
If the XML character is a safe character, returns true; otherwise, false.

Remarks

Examples of in valid or non safe XML characters are a colon, a semi colon, a coma, a whitespace and a control character. Examples of valid XML chars are 0x9, 0xA, 0xD, 0x20-0xD7FF, 0xE000-0xFFFD, 0x10000-0x10FFFF.

See also

Reference

SPClaim class

SPClaim members

Microsoft.SharePoint.Administration.Claims namespace