SPClaim Constructor
Initializes a new instance of a SharePoint claim object by using the specified type, value, value type, and original issuer.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
type As String, _
value As String, _
valueType As String, _
originalIssuer As String _
)
'Usage
Dim type As String
Dim value As String
Dim valueType As String
Dim originalIssuer As String
Dim instance As New SPClaim(type, value, _
valueType, originalIssuer)
public SPClaim(
string type,
string value,
string valueType,
string originalIssuer
)
Parameters
type
Type: System.StringThe claim type.
value
Type: System.StringThe claim value.
valueType
Type: System.StringThe claim value type.
originalIssuer
Type: System.StringThe original issuer.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | Thrown when any parameter is a null reference (Nothing in Visual Basic). |
[ArgumentException] | Thrown when valueType or originalIssuer are empty. |