Language

MultipleGroupPolicyObjectsFoundException Constructor (String, ICollection<Guid>, String, String, Exception)

 

Initializes a new instance of the MultipleGroupPolicyObjectsFoundException class with the name of the parameter that causes this exception, the list of Group Policy objects (GPOs) that have the same display name, the display name, the domain name, and the inner exception that caused this exception.

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

Syntax

public MultipleGroupPolicyObjectsFoundException(
    string paramName,
    ICollection<Guid> gpoList,
    string gpoDisplayName,
    string domainName,
    Exception innerException
)
public:
MultipleGroupPolicyObjectsFoundException(
    String^ paramName,
    ICollection<Guid>^ gpoList,
    String^ gpoDisplayName,
    String^ domainName,
    Exception^ innerException
)
new : 
        paramName:string *
        gpoList:ICollection<Guid> *
        gpoDisplayName:string *
        domainName:string *
        innerException:Exception -> MultipleGroupPolicyObjectsFoundException
Public Sub New (
    paramName As String,
    gpoList As ICollection(Of Guid),
    gpoDisplayName As String,
    domainName As String,
    innerException As Exception
)

Parameters

  • paramName
    Type: System.String

    The name of the parameter that caused the current exception.

  • gpoDisplayName
    Type: System.String

    The display name that the GPOs have.

  • domainName
    Type: System.String

    The name of the domain in which the GPOs exist.

  • innerException
    Type: System.Exception

    The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

This constructor initializes the Message property of the new instance to a message that provides the display name of the GPOs and the name of the domain in which they exist. This message takes into account the current system culture.

See Also

MultipleGroupPolicyObjectsFoundException Overload
MultipleGroupPolicyObjectsFoundException Class
Microsoft.GroupPolicy Namespace

Return to top