Lenguaje

SmoUtility.IsSupportedObject Método

Definición

Sobrecargas

Nombre Description
IsSupportedObject(Type, ServerVersion, DatabaseEngineType, DatabaseEngineEdition)

Indica si el tipo especificado es compatible con la versión del servidor, el tipo de motor y la edición del motor especificados.

IsSupportedObject<T>(SqlSmoObject, ScriptingPreferences)

Comprueba si el tipo especificado es compatible con y ServerVersionDatabaseEngineType del servidor raíz para este objeto. Si scriptingPreferences no son NULL también comprobará si el tipo especificado es compatible con y ServerVersionDatabaseEngineType el servidor de destino.

IsSupportedObject(Type, ServerVersion, DatabaseEngineType, DatabaseEngineEdition)

Indica si el tipo especificado es compatible con la versión del servidor, el tipo de motor y la edición del motor especificados.

public static bool IsSupportedObject(Type type, Microsoft.SqlServer.Management.Common.ServerVersion serverVersion, Microsoft.SqlServer.Management.Common.DatabaseEngineType databaseEngineType, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition);
static member IsSupportedObject : Type * Microsoft.SqlServer.Management.Common.ServerVersion * Microsoft.SqlServer.Management.Common.DatabaseEngineType * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> bool
Public Function IsSupportedObject (type As Type, serverVersion As ServerVersion, databaseEngineType As DatabaseEngineType, databaseEngineEdition As DatabaseEngineEdition) As Boolean

Parámetros

type
Type
serverVersion
ServerVersion
databaseEngineType
DatabaseEngineType
databaseEngineEdition
DatabaseEngineEdition

Devoluciones

Se aplica a

IsSupportedObject<T>(SqlSmoObject, ScriptingPreferences)

Comprueba si el tipo especificado es compatible con y ServerVersionDatabaseEngineType del servidor raíz para este objeto. Si scriptingPreferences no son NULL también comprobará si el tipo especificado es compatible con y ServerVersionDatabaseEngineType el servidor de destino.

public static bool IsSupportedObject<T>(this Microsoft.SqlServer.Management.Smo.SqlSmoObject smoObject, Microsoft.SqlServer.Management.Smo.ScriptingPreferences sp = default) where T : Microsoft.SqlServer.Management.Smo.SqlSmoObject;
static member IsSupportedObject : Microsoft.SqlServer.Management.Smo.SqlSmoObject * Microsoft.SqlServer.Management.Smo.ScriptingPreferences -> bool (requires 'T :> Microsoft.SqlServer.Management.Smo.SqlSmoObject)
<Extension()>
Public Function IsSupportedObject(Of T As SqlSmoObject) (smoObject As SqlSmoObject, Optional sp As ScriptingPreferences = Nothing) As Boolean

Parámetros de tipo

T

Parámetros

smoObject
SqlSmoObject
sp
ScriptingPreferences

Opcional: si se proporciona también comprobará si el servidor de destino admite el tipo especificado.

Devoluciones

TRUE si el tipo especificado es compatible con la conexión actual o ScriptingPreferences.

Se aplica a