/// <summary> /// Initializes a new instance of the <see cref="SecurityPrincipal"/> class. /// </summary> /// <param name="identity">An <see cref="SecurityIdentity"/> object.</param> /// <exception cref="ArgumentNullException">Value specified for <paramref name="identity"/> is null.</exception> public SecurityPrincipal(SecurityIdentity identity) { if (identity == null) throw new ArgumentNullException(nameof(identity)); m_identity = identity; }
/// <summary> /// Initializes a new instance of the <see cref="SecurityPrincipal"/> class. /// </summary> /// <param name="identity">An <see cref="SecurityIdentity"/> object.</param> /// <exception cref="ArgumentNullException">Value specified for <paramref name="identity"/> is null.</exception> public SecurityPrincipal(SecurityIdentity identity) { if (identity == null) { throw new ArgumentNullException(nameof(identity)); } m_identity = identity; }