コード例 #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)));
 }