TranslateToSids() private static method

private static TranslateToSids ( IdentityReferenceCollection sourceAccounts, bool &someFailed ) : IdentityReferenceCollection
sourceAccounts IdentityReferenceCollection
someFailed bool
return IdentityReferenceCollection
Ejemplo n.º 1
0
 internal static IdentityReferenceCollection Translate(IdentityReferenceCollection sourceAccounts, Type targetType, out bool someFailed)
 {
     if (sourceAccounts == null)
     {
         throw new ArgumentNullException("sourceAccounts");
     }
     if (targetType == typeof(SecurityIdentifier))
     {
         return(NTAccount.TranslateToSids(sourceAccounts, out someFailed));
     }
     throw new ArgumentException(Environment.GetResourceString("IdentityReference_MustBeIdentityReference"), "targetType");
 }