4.1.4.2.6 DomainNameFromUPN

 procedure DomainNameFromUPN(upn: unicodestring): unicodestring

Parses and returns the domain name from a UPN-formatted string upn. The domain name is the component after the '@'. For example, when the input is "username@example.fabrikam.com", then "example. fabrikam.com" is returned. If upn is not in UPN format, then null is returned.

Show: