Condividi tramite


SqlAssessmentExtensions.GetAssessmentItems Method

Definition

Overloads

GetAssessmentItems(AvailabilityGroup, String[])

Finds all available checks for given availabilityGroup.

GetAssessmentItems(Database, String[])

Finds all available checks for given database.

GetAssessmentItems(FileGroup, String[])

Finds all available checks for given fileGroup.

GetAssessmentItems(Server, String[])

Finds all available checks for given server.

GetAssessmentItems(SqlSmoObject, String[])

Finds all available checks for given smoObject.

GetAssessmentItems(AvailabilityGroup, String[])

Finds all available checks for given availabilityGroup.

public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> GetAssessmentItems (this Microsoft.SqlServer.Management.Smo.AvailabilityGroup availabilityGroup, params string[] checkIdsOrTags);
static member GetAssessmentItems : Microsoft.SqlServer.Management.Smo.AvailabilityGroup * string[] -> seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck>
<Extension()>
Public Function GetAssessmentItems (availabilityGroup As AvailabilityGroup, ParamArray checkIdsOrTags As String()) As IEnumerable(Of ICheck)

Parameters

availabilityGroup
AvailabilityGroup

Returned checks are applicable to this target AvailabilityGroup.

checkIdsOrTags
String[]

Optional array of String check ids or tags to select only specific checks.

Returns

Returns an IEnumerable<T> for target SqlSmoObject.

Applies to

GetAssessmentItems(Database, String[])

Finds all available checks for given database.

public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> GetAssessmentItems (this Microsoft.SqlServer.Management.Smo.Database database, params string[] checkIdsOrTags);
static member GetAssessmentItems : Microsoft.SqlServer.Management.Smo.Database * string[] -> seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck>
<Extension()>
Public Function GetAssessmentItems (database As Database, ParamArray checkIdsOrTags As String()) As IEnumerable(Of ICheck)

Parameters

database
Database

Returned checks are applicable to this target Database.

checkIdsOrTags
String[]

Optional array of String check ids or tags to select only specific checks.

Returns

Returns an IEnumerable<T> for target SqlSmoObject.

Applies to

GetAssessmentItems(FileGroup, String[])

Finds all available checks for given fileGroup.

public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> GetAssessmentItems (this Microsoft.SqlServer.Management.Smo.FileGroup fileGroup, params string[] checkIdsOrTags);
static member GetAssessmentItems : Microsoft.SqlServer.Management.Smo.FileGroup * string[] -> seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck>
<Extension()>
Public Function GetAssessmentItems (fileGroup As FileGroup, ParamArray checkIdsOrTags As String()) As IEnumerable(Of ICheck)

Parameters

fileGroup
FileGroup

Returned checks are applicable to this target FileGroup.

checkIdsOrTags
String[]

Optional array of String check ids or tags to select only specific checks.

Returns

Returns an IEnumerable<T> for target SqlSmoObject.

Applies to

GetAssessmentItems(Server, String[])

Finds all available checks for given server.

public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> GetAssessmentItems (this Microsoft.SqlServer.Management.Smo.Server server, params string[] checkIdsOrTags);
static member GetAssessmentItems : Microsoft.SqlServer.Management.Smo.Server * string[] -> seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck>
<Extension()>
Public Function GetAssessmentItems (server As Server, ParamArray checkIdsOrTags As String()) As IEnumerable(Of ICheck)

Parameters

server
Server

Returned checks are applicable to this target Server.

checkIdsOrTags
String[]

Optional array of String check ids or tags to select only specific checks.

Returns

Returns an IEnumerable<T> for target SqlSmoObject.

Applies to

GetAssessmentItems(SqlSmoObject, String[])

Finds all available checks for given smoObject.

public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> GetAssessmentItems (this Microsoft.SqlServer.Management.Smo.SqlSmoObject smoObject, params string[] checkIdsOrTags);
static member GetAssessmentItems : Microsoft.SqlServer.Management.Smo.SqlSmoObject * string[] -> seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck>
<Extension()>
Public Function GetAssessmentItems (smoObject As SqlSmoObject, ParamArray checkIdsOrTags As String()) As IEnumerable(Of ICheck)

Parameters

smoObject
SqlSmoObject

Returned checks are applicable to this target SqlSmoObject.

checkIdsOrTags
String[]

Optional array of String check ids or tags to select only specific checks.

Returns

Returns an IEnumerable<T> for target SqlSmoObject.

Applies to