GetComputer

Returns the computer for which the role assignment is made.

Syntax

IComputer GetComputer()

Return value

The computer object representing the computer for which the role assignment is made.

Exceptions

GetComputer throws an ApplicationException if there are multiple computers, computer service connection points (SCPs), or zones that have the same DNS host name; if the method failed to find the computer; or if the method failed to get the computer profile from the role assignment.