Server.IsSupportedProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| IsSupportedProperty(Type, String, DatabaseEngineEdition) |
サーバーのバージョンとエディションの Type 型のオブジェクトに対して、指定されたプロパティ名が有効な場合は true を返します。 |
| IsSupportedProperty<T>(Expression<Func<T,Object>>, DatabaseEngineEdition) |
式が現在のサーバーのバージョンとエディションの有効な SqlSmoObject プロパティを識別する場合は true を返します。 |
| IsSupportedProperty<T>(String, DatabaseEngineEdition) |
サーバーのバージョンとエディションの T 型のオブジェクトに対して、指定されたプロパティ名が有効な場合は true を返します。 |
IsSupportedProperty(Type, String, DatabaseEngineEdition)
サーバーのバージョンとエディションの Type 型のオブジェクトに対して、指定されたプロパティ名が有効な場合は true を返します。
public bool IsSupportedProperty(Type type, string propertyName, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown);
override this.IsSupportedProperty : Type * string * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> bool
Public Function IsSupportedProperty (type As Type, propertyName As String, Optional databaseEngineEdition As DatabaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown) As Boolean
パラメーター
- type
- Type
SqlSmoObject に割り当て可能な型
- propertyName
- String
- databaseEngineEdition
- DatabaseEngineEdition
サポートされているプロパティを確認する特定のデータベース エディション。 不明または指定されていない場合、チェックではマスター データベースのエディションが使用されます。
返品
プロパティを要求できる場合は true、それ以外の場合は false
例外
型が SqlSmoObject でない場合、または SqlSmoObject にサーバーのバージョンに基づくプロパティの可視性がない場合
適用対象
IsSupportedProperty<T>(Expression<Func<T,Object>>, DatabaseEngineEdition)
式が現在のサーバーのバージョンとエディションの有効な SqlSmoObject プロパティを識別する場合は true を返します。
public bool IsSupportedProperty<T>(System.Linq.Expressions.Expression<Func<T,object>> expression, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown);
override this.IsSupportedProperty : System.Linq.Expressions.Expression<Func<'T, obj>> * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> bool
Public Function IsSupportedProperty(Of T) (expression As Expression(Of Func(Of T, Object)), Optional databaseEngineEdition As DatabaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown) As Boolean
型パラメーター
- T
チェック対象の SqlSmoObject の派生型
パラメーター
- expression
- Expression<Func<T,Object>>
T 型のオブジェクトのプロパティを参照する LINQ 式。式内の参照先プロパティの名前が参照に使用されます。
- databaseEngineEdition
- DatabaseEngineEdition
返品
プロパティを要求できる場合は true、それ以外の場合は false
例外
SqlSmoObject にサーバーのバージョンに基づくプロパティの可視性がない場合
例
サーバー。IsSupportedProperty<Table>(t => t.LedgerType)
適用対象
IsSupportedProperty<T>(String, DatabaseEngineEdition)
サーバーのバージョンとエディションの T 型のオブジェクトに対して、指定されたプロパティ名が有効な場合は true を返します。
public bool IsSupportedProperty<T>(string propertyName, Microsoft.SqlServer.Management.Common.DatabaseEngineEdition databaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown) where T : Microsoft.SqlServer.Management.Smo.SqlSmoObject;
override this.IsSupportedProperty : string * Microsoft.SqlServer.Management.Common.DatabaseEngineEdition -> bool (requires 'T :> Microsoft.SqlServer.Management.Smo.SqlSmoObject)
Public Function IsSupportedProperty(Of T As SqlSmoObject) (propertyName As String, Optional databaseEngineEdition As DatabaseEngineEdition = Microsoft.SqlServer.Management.Common.DatabaseEngineEdition.Unknown) As Boolean
型パラメーター
- T
チェック対象の SqlSmoObject の派生型
パラメーター
- propertyName
- String
- databaseEngineEdition
- DatabaseEngineEdition
サポートされているプロパティを確認する特定のデータベース エディション。 不明または指定されていない場合、チェックではマスター データベースのエディションが使用されます。
返品
プロパティを要求できる場合は true、それ以外の場合は false
例外
SqlSmoObject にサーバーのバージョンに基づくプロパティの可視性がない場合