VSDBCmdServices.SetProperties 方法
使用反映來動態設定屬性的 Helper 方法。
命名空間: 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。