Claim.Clone Method
Definition
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 new Claim object copied from this object.
Overloads
Clone(ClaimsIdentity) |
Returns a new Claim object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity. |
Clone() |
Returns a new Claim object copied from this object. The new claim does not have a subject. |
Clone(ClaimsIdentity)
- Source:
- Claim.cs
- Source:
- Claim.cs
- Source:
- Claim.cs
Returns a new Claim object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity.
public:
virtual System::Security::Claims::Claim ^ Clone(System::Security::Claims::ClaimsIdentity ^ identity);
public virtual System.Security.Claims.Claim Clone (System.Security.Claims.ClaimsIdentity identity);
public virtual System.Security.Claims.Claim Clone (System.Security.Claims.ClaimsIdentity? identity);
abstract member Clone : System.Security.Claims.ClaimsIdentity -> System.Security.Claims.Claim
override this.Clone : System.Security.Claims.ClaimsIdentity -> System.Security.Claims.Claim
Public Overridable Function Clone (identity As ClaimsIdentity) As Claim
Parameters
- identity
- ClaimsIdentity
The intended subject of the new claim.
Returns
The new claim object.
Remarks
This is a shallow copy operation. The Subject property of the new Claim object is set to the value of the identity
parameter.
Applies to
Clone()
- Source:
- Claim.cs
- Source:
- Claim.cs
- Source:
- Claim.cs
Returns a new Claim object copied from this object. The new claim does not have a subject.
public:
virtual System::Security::Claims::Claim ^ Clone();
public virtual System.Security.Claims.Claim Clone ();
abstract member Clone : unit -> System.Security.Claims.Claim
override this.Clone : unit -> System.Security.Claims.Claim
Public Overridable Function Clone () As Claim
Returns
The new claim object.
Remarks
This is a shallow copy operation. The Subject property of the new Claim object is set to null
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기