Metoda IDynamicProperties.AddProperties
Dodaje określony właściwości Object do kolekcja właściwości.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.
Przestrzeń nazw: Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw: Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Składnia
'Deklaracja
Sub AddProperties ( _
properties As PropertyDescriptorCollection, _
context As ITypeDescriptorContext, _
value As Object, _
attributes As Attribute() _
)
'Użycie
Dim instance As IDynamicProperties
Dim properties As PropertyDescriptorCollection
Dim context As ITypeDescriptorContext
Dim value As Object
Dim attributes As Attribute()
instance.AddProperties(properties, context, _
value, attributes)
void AddProperties(
PropertyDescriptorCollection properties,
ITypeDescriptorContext context,
Object value,
Attribute[] attributes
)
void AddProperties(
PropertyDescriptorCollection^ properties,
ITypeDescriptorContext^ context,
Object^ value,
array<Attribute^>^ attributes
)
abstract AddProperties :
properties:PropertyDescriptorCollection *
context:ITypeDescriptorContext *
value:Object *
attributes:Attribute[] -> unit
function AddProperties(
properties : PropertyDescriptorCollection,
context : ITypeDescriptorContext,
value : Object,
attributes : Attribute[]
)
Parametry
- properties
Typ: System.ComponentModel.PropertyDescriptorCollection
A PropertyDescriptorCollection obiekt, który zawiera właściwości.
- context
Typ: System.ComponentModel.ITypeDescriptorContext
ITypeDescriptorContext Obiekt zawierający informacje kontekstu.
- value
Typ: System.Object
Object Którego właściwości do dodania.
- attributes
Typ: array<System.Attribute[]
Tablica Attribute jako filtru.
Zobacz także