ProjectProblemSuppressor.CreateSuppressor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Exceptions
Thrown if the Path to the XML file was invalid or if there was a problem parsing the XML