共用方式為


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

參數

  • propertyHolder
    型別:System.Object
    要設定其屬性的物件。

傳回值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

VSDBCmdServices 類別

Microsoft.Data.Schema.Build 命名空間