示例#1
0
 public static IResourceName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : SpnName.TryParse(name) ?? ((IResourceName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }
示例#2
0
 public static ISecurityPrincipalName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : ((ISecurityPrincipalName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }