Adds a FieldInfo 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 ( _
value As FieldInfo _
) As Integer
'使用
Dim instance As VirtualTypeBuilder..::.FieldInfoCollection
Dim value As FieldInfo
Dim returnValue As Integer
returnValue = instance.Add(value)
public int Add(
FieldInfo value
)
public:
int Add(
FieldInfo^ value
)
public function Add(
value : FieldInfo
) : int
Parameters
value
Type: System.Reflection.FieldInfoThe FieldInfo to be added to the end of the collection.
Return Value
Type: System.Int32
The index at which the value has been added.
Permissions
- 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.
See Also
Reference
VirtualTypeBuilder.FieldInfoCollection Class