Creates a with the specified type, value, value type, and issuer.
命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim claimType As String Dim value As String Dim valueType As String Dim issuer As String Dim instance As New Claim(claimType, value, valueType, issuer)
语法
声明
Public Sub New ( _
claimType As String, _
value As String, _
valueType As String, _
issuer As String _
)
public Claim (
string claimType,
string value,
string valueType,
string issuer
)
public:
Claim (
String^ claimType,
String^ value,
String^ valueType,
String^ issuer
)
public Claim (
String claimType,
String value,
String valueType,
String issuer
)
public function Claim (
claimType : String,
value : String,
valueType : String,
issuer : String
)
参数
- claimType
The claim type.
- value
The claim value.
- valueType
The claim value type. If this parameter is null, then F:Microsoft.IdentityModel.Claims.ClaimValueTypes.String is used.
- issuer
The claim issuer. Can be null to specify no issuer.
异常
| 异常类型 | 条件 |
|---|
备注
P:Microsoft.IdentityModel.Claims.Claim.OriginalIssuer is set to the value of the issuer parameter. P:Microsoft.IdentityModel.Claims.Claim.Subject is set to null.
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP