Share via


GPDomain.SearchSoms Method (Gpo)

 

Retrieves a scope of management (SOM) for each container (in the domain) that the specified GPO is linked to.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public SomCollection SearchSoms(
    Gpo gpo
)
public:
SomCollection^ SearchSoms(
    Gpo^ gpo
)
member SearchSoms : 
        gpo:Gpo -> SomCollection
Public Function SearchSoms (
    gpo As Gpo
) As SomCollection

Parameters

Return Value

Type: Microsoft.GroupPolicy.SomCollection

Returns SomCollection. A collection of SOMs, each of which represents a container to which the GPO is linked.

Exceptions

Exception Condition
ArgumentNullException

gpo is null

See Also

GPDomain Class
Microsoft.GroupPolicy Namespace

Return to top