Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Helper method that uses reflection to set properties dynamically.
Namespace: Microsoft.Data.Schema.Build
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
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
Parameters
- availableProperties
Type: System.Collections.Generic.IDictionary<String, PropertyInfo>
A list of available properties.
- propertyValueLookup
Type: System.Collections.Generic.IDictionary<String, String>
A name/value pair list of properties, keyed by property name.
- propertyHolder
Type: System.Object
The object whose properties will be set.
- unsetProperties
Type: System.Collections.Generic.HashSet<String>%
The returned list of properties whose values were not set.
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.