Método VSDBCmdServices.SetProperties
Método auxiliar que usa a reflexão para definir propriedades dinamicamente.
Namespace: Microsoft.Data.Schema.Build
Assembly: Microsoft.Data.Schema (em Microsoft.Data.Schema.dll)
Sintaxe
'Declaração
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
Parâmetros
- availableProperties
Tipo: System.Collections.Generic.IDictionary<String, PropertyInfo>
Uma lista de propriedades disponíveis.
- propertyValueLookup
Tipo: System.Collections.Generic.IDictionary<String, String>
Uma lista de par nome/valor das propriedades, encaixado pelo nome da propriedade.
- propertyHolder
Tipo: System.Object
O objeto cujas propriedades serão definidas.
- unsetProperties
Tipo: System.Collections.Generic.HashSet<String>%
A lista retornada de propriedades cujos valores não foram definidos.
Valor de retorno
Tipo: System.Boolean
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiáveis.