Language

MultipleGroupPolicyObjectsFoundException Constructor (String, ICollection<Guid>)

 

Initializes a new instance of the MultipleGroupPolicyObjectsFoundException class with a specified error message and a list of Group Policy objects (GPOs) that have the same display name.

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

Syntax

public MultipleGroupPolicyObjectsFoundException(
    string message,
    ICollection<Guid> gpoList
)
public:
MultipleGroupPolicyObjectsFoundException(
    String^ message,
    ICollection<Guid>^ gpoList
)
new : 
        message:string *
        gpoList:ICollection<Guid> -> MultipleGroupPolicyObjectsFoundException
Public Sub New (
    message As String,
    gpoList As ICollection(Of Guid)
)

Parameters

  • message
    Type: System.String

    The error message that describes the reason for the exception.

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.

You can use the GetGpoList method to retrieve the list of GPOs that caused the exception.

See Also

MultipleGroupPolicyObjectsFoundException Overload
MultipleGroupPolicyObjectsFoundException Class
Microsoft.GroupPolicy Namespace

Return to top