System.Security.Claims.ClaimsIdentity.ClaimsIdentity C# (CSharp) Method

ClaimsIdentity() protected method

Copy constructor.
if 'other' is null.
protected ClaimsIdentity ( ClaimsIdentity other ) : System.Collections.Generic
other ClaimsIdentity to copy.
return System.Collections.Generic
        protected ClaimsIdentity(ClaimsIdentity other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            if (other._actor != null)
            {
                _actor = other._actor.Clone();
            }

            _authenticationType = other._authenticationType;
            _bootstrapContext = other._bootstrapContext;
            _label = other._label;
            _nameClaimType = other._nameClaimType;
            _roleClaimType = other._roleClaimType;
            if (other._userSerializationData != null)
            {
                _userSerializationData = other._userSerializationData.Clone() as byte[];
            }

            SafeAddClaims(other._instanceClaims);
        }

Same methods

ClaimsIdentity::ClaimsIdentity ( )
ClaimsIdentity::ClaimsIdentity ( System reader )
ClaimsIdentity::ClaimsIdentity ( System info, System context )
ClaimsIdentity::ClaimsIdentity ( System identity, System claims )
ClaimsIdentity::ClaimsIdentity ( System identity, System claims, string authenticationType, string nameType, string roleType )
ClaimsIdentity::ClaimsIdentity ( System claims )
ClaimsIdentity::ClaimsIdentity ( System claims, string authenticationType )
ClaimsIdentity::ClaimsIdentity ( System claims, string authenticationType, string nameType, string roleType )
ClaimsIdentity::ClaimsIdentity ( string authenticationType )
ClaimsIdentity::ClaimsIdentity ( string authenticationType, string nameType, string roleType )
ClaimsIdentity::ClaimsIdentity ( ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( BinaryReader reader ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IEnumerable claims ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IEnumerable claims, string authenticationType ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IEnumerable claims, string authenticationType, string nameType, string roleType ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IIdentity identity ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IIdentity identity, IEnumerable claims ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( IIdentity identity, IEnumerable claims, string authenticationType, string nameType, string roleType ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( SerializationInfo info ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( SerializationInfo info, StreamingContext context ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( string authenticationType ) : System.Collections.Generic
ClaimsIdentity::ClaimsIdentity ( string authenticationType, string nameType, string roleType ) : System.Collections.Generic