リフレクションを使用してプロパティを動的に設定するヘルパー メソッド。
名前空間: Microsoft.Data.Schema.Build
アセンブリ: Microsoft.Data.Schema (Microsoft.Data.Schema.dll 内)
構文
'宣言
Public Shared Function SetProperties ( _
availableProperties As IDictionary(Of String, PropertyInfo), _
propertyValueLookup As IDictionary(Of String, String), _
propertyHolder As Object, _
<OutAttribute> ByRef unsetProperties As HashSet(Of String) _
) As Boolean
public static bool SetProperties(
IDictionary<string, PropertyInfo> availableProperties,
IDictionary<string, string> propertyValueLookup,
Object propertyHolder,
out HashSet<string> unsetProperties
)
public:
static bool SetProperties(
IDictionary<String^, PropertyInfo^>^ availableProperties,
IDictionary<String^, String^>^ propertyValueLookup,
Object^ propertyHolder,
[OutAttribute] HashSet<String^>^% unsetProperties
)
static member SetProperties :
availableProperties:IDictionary<string, PropertyInfo> *
propertyValueLookup:IDictionary<string, string> *
propertyHolder:Object *
unsetProperties:HashSet<string> byref -> bool
public static function SetProperties(
availableProperties : IDictionary<String, PropertyInfo>,
propertyValueLookup : IDictionary<String, String>,
propertyHolder : Object,
unsetProperties : HashSet<String>
) : boolean
パラメーター
- availableProperties
型: System.Collections.Generic.IDictionary<String, PropertyInfo>
使用できるプロパティのリスト。
- propertyValueLookup
型: System.Collections.Generic.IDictionary<String, String>
プロパティ名をキーとするプロパティの名前と値のペアのリスト。
- propertyHolder
型: System.Object
プロパティが設定されるオブジェクト。
- unsetProperties
型: System.Collections.Generic.HashSet<String>%
値が設定されていなかったプロパティのリストが返されます。
戻り値
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。