DomainCollectionExists Method (String, Boolean, String)Ipswitch.Messaging.Framework

Check to see if a domain is local. This will not load the domain collection which is not needed.

If IncludeAliases is true, strOHN must be supplied or false will be returned.

Namespace: IMailAPI_NET
Assembly: IMailAPI_NET (in IMailAPI_NET.dll) Version: 1.0.0.0
Syntax

public static bool Exists(
	string strHostName,
	bool bIncludeAliases,
	out string strOHN
)

Parameters

strHostName
Type: SystemString
The host name to look for.
bIncludeAliases
Type: SystemBoolean
Whether or not to search through domain aliases to find the given host name. Setting this to true will search for aliases as well as host names.
strOHN
Type: SystemString
If the host name being searched for is found in an alias, strOHN will be set to the OHN of the domain that has that particular alias. Otherwise, the OHN will be set to String.Empty.

Return Value

Type: Boolean
True if the given host name was found.
See Also

Reference