Click or drag to resize
PMGroupOULookupGroup Method
Looks up and returns a PMGroupOU object for the group and domain specified.

Namespace: PM90SettingsAPI.Membership
Assembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax
C#
public static PMGroupOU LookupGroup(
	string name,
	string domainName
)

Parameters

name
Type: SystemString
The Active Directory name of the group
domainName
Type: SystemString
The domain name of group, null or empty assumes workgroup / local user

Return Value

Type: PMGroupOU
A new PMGroupOU object, or null if not found
Exceptions
ExceptionCondition
ArgumentExceptionInvalid or null GroupName
PMObjectNoFoundExceptionGroup does not exist, or could not be found
PMServiceUnreachableExceptionThe PMTracking service isn't running, or is unreachable
PMDatabaseConnectionNotFoundExceptionNo database connection available on this system
PMDatabaseExceptionRepresents an database connection or syntax error that has occurred when processing an API request
PMExceptionUnexcpected exception has occurred, check inner exception
Remarks
This API call requires the Print Manager Plus tracking service to be running. Fully qualified domain name is recommended, however NetBIOS domain names may be converted by the api if possible.
See Also