次の方法で共有


VirtualTypeBuilder.PropertyInfoCollection.Add Method (String, Type, Boolean, array<Type )

Adds a PropertyInfo to the end of the collection.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Public Function Add ( _
    name As String, _
    propertyType As Type, _
    readOnly As Boolean, _
    parameterTypes As Type() _
) As Integer
public int Add(
    string name,
    Type propertyType,
    bool readOnly,
    Type[] parameterTypes
)

Parameters

  • propertyType
    Type: System.Type
    The type of the property.
  • readOnly
    Type: System.Boolean
    Determines if this property is read-only or read-write.

Return Value

Type: System.Int32
The index at which the value has been added.

Exceptions

Exception Condition
ArgumentNullException

name is nulla null reference (Nothing in Visual Basic).

-or-

propertyType is nulla null reference (Nothing in Visual Basic)

-or-

An element in paramTypes is nulla null reference (Nothing in Visual Basic).

paramTypes may be nulla null reference (Nothing in Visual Basic).

ArgumentException

propertyType is not a runtime type.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder.PropertyInfoCollection Class

Add Overload

Microsoft.VisualStudio.Shell.Design Namespace