CCNet.SourceNotifier.Gateways.ActiveDirectoryGateway.GetDomain C# (CSharp) Method

GetDomain() private static method

Parses the domain name out of a logon name.
private static GetDomain ( string userName ) : string
userName string
return string
		private static string GetDomain(string userName)
		{
			return userName.Contains('\\') ? userName.Substring(0, userName.IndexOf('\\')) : null;
		}
ActiveDirectoryGateway