SmoUtility.IsSupportedObject Method

Definition

Overloads

IsSupportedObject(Type, ServerVersion, DatabaseEngineType, DatabaseEngineEdition)

Whether the specified type is supported by the specified server Version, Engine Type and Engine Edition.

IsSupportedObject<T>(SqlSmoObject, ScriptingPreferences)

Checks if the specified type is supported by the ServerVersion and DatabaseEngineType of the root server for this object. If ScriptingPreferences are non-null will also check if specified type is supported by the ServerVersion and DatabaseEngineType of the target server.

IsSupportedObject(Type, ServerVersion, DatabaseEngineType, DatabaseEngineEdition)

Whether the specified type is supported by the specified server Version, Engine Type and Engine Edition.

C#
public static bool IsSupportedObject(Type type, Microsoft.SqlServer.Management.Common.ServerVersion serverVersion, Microsoft.SqlServer.Management.Common.DatabaseEngineType databaseEngineType, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition);

Parameters

type
Type
serverVersion
ServerVersion
databaseEngineType
DatabaseEngineType
databaseEngineEdition
DatabaseEngineEdition

Returns

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 y Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Producto Versiones
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

IsSupportedObject<T>(SqlSmoObject, ScriptingPreferences)

Checks if the specified type is supported by the ServerVersion and DatabaseEngineType of the root server for this object. If ScriptingPreferences are non-null will also check if specified type is supported by the ServerVersion and DatabaseEngineType of the target server.

C#
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;

Type Parameters

T

Parameters

smoObject
SqlSmoObject
sp
ScriptingPreferences

Optional - If provided will also check if target server supports specified type

Returns

TRUE if the specified type is supported by the current connection and/or ScriptingPreferences

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 y Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Producto Versiones
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0