Partager via


ProjectProblemSuppressor.CreateSuppressor Method

Definition

Overloads

CreateSuppressor(String)

Creates a new ProjectProblemSuppressor.

CreateSuppressor(String, String)

Creates a new ProjectProblemSuppressor.

CreateSuppressor(String)

Creates a new ProjectProblemSuppressor.

public static Microsoft.SqlServer.Dac.CodeAnalysis.ProjectProblemSuppressor CreateSuppressor (string projectFolder);
static member CreateSuppressor : string -> Microsoft.SqlServer.Dac.CodeAnalysis.ProjectProblemSuppressor
Public Shared Function CreateSuppressor (projectFolder As String) As ProjectProblemSuppressor

Parameters

projectFolder
String

The folder in which the XML Message suppression file is found. Any rule suppressed using a relative file path will base the full path off this folder location.

Returns

ProjectProblemSuppressor

Exceptions

Thrown if the Path to the XML file was invalid or if there was a problem parsing the XML

Applies to

CreateSuppressor(String, String)

Creates a new ProjectProblemSuppressor.

public static Microsoft.SqlServer.Dac.CodeAnalysis.ProjectProblemSuppressor CreateSuppressor (string projectFolder, string suppressionFilename);
static member CreateSuppressor : string * string -> Microsoft.SqlServer.Dac.CodeAnalysis.ProjectProblemSuppressor
Public Shared Function CreateSuppressor (projectFolder As String, suppressionFilename As String) As ProjectProblemSuppressor

Parameters

projectFolder
String

The folder in which the XML Message suppression file is found. Any rule suppressed using a relative file path will base the full path off this folder location.

suppressionFilename
String

' The name of the XML message suppression file. This is expected to be under the project folder.

Returns

ProjectProblemSuppressor

Exceptions

Thrown if the Path to the XML file was invalid or if there was a problem parsing the XML

Applies to