GPDomain.GetSom Method (String)
Retrieves a scope of management (SOM) that represents the domain or the organizational unit (OU) at the specified path.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public Som GetSom(
string path
)
public:
Som^ GetSom(
String^ path
)
member GetSom :
path:string -> Som
Public Function GetSom (
path As String
) As Som
Parameters
path
Type: System.StringThe path of the SOM specified as a fully qualified distinguished name, for example, (ou=MyOU,dc=contoso,dc=com).
Return Value
Type: Microsoft.GroupPolicy.Som
Returns Som. The SOM that represents the domain or OU.
Exceptions
Exception | Condition |
---|---|
ArgumentException | path is an empty string (“”). |
ArgumentNullException | path is null. |
See Also
GPDomain Class
Microsoft.GroupPolicy Namespace
Return to top