Adds the specified value to the collection.
Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
声明
Public Function Add ( _
    value As DocData _
) As Integer
用法
Dim instance As RelatedDocDataCollection
Dim value As DocData
Dim returnValue As Integer
returnValue = instance.Add(value)
public int Add(
    DocData value
)
public:
int Add(
    DocData^ value
)
member Add : 
        value:DocData -> int 
public function Add(
    value : DocData
) : int
Parameters
- value
Type: Microsoft.VisualStudio.Shell.Design.Serialization.DocData
The document data object to be added. 
Return Value
Type: System.Int32
The position in the collection at which the document data was added.
.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.
 
See Also
Reference
RelatedDocDataCollection Class