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.
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
'Declaration
Public Function Add ( _
    name As String, _
    propertyType As Type, _
    readOnly As Boolean _
) As Integer
public int Add(
    string name,
    Type propertyType,
    bool readOnly
)
public:
int Add(
    String^ name, 
    Type^ propertyType, 
    bool readOnly
)
member Add : 
        name:string * 
        propertyType:Type * 
        readOnly:bool -> int
public function Add(
    name : String, 
    propertyType : Type, 
    readOnly : boolean
) : int
Parameters
- name 
 Type: String- The name of the property to add. 
- propertyType 
 Type: Type- The type of the property. 
- readOnly 
 Type: Boolean- Determines if this property is read only or read write. 
Return Value
Type: 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). | 
| ArgumentException | propertyType is not a runtime type. | 
.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.