Export (0) Print
Expand All
ID
Top
Expand Minimize

Collection Property (General Extensibility)

Visual Studio .NET 2003

Returns the collection containing the object supporting this property or contained within this code construct.

[Visual Basic .NET]
Public ReadOnly Property Collection() As <CollectionName>
[Visual Basic 6]
Property Get Collection() As <CollectionName>
[C++]
HRESULT __stdcall get_Collection(
   /* [out, retval] */ AddIns** retVal
);
[C#]
<CollectionName> Collection {get;}
[JScript .NET]
public function get Collection() : <CollectionName>

Return Value

Returns a collection relating to the object. See Remarks for more information.

Remarks

<CollectionName> in the syntax refers to the appropriate collection name that relates to the object. For example, <CollectionName> for the TextRange object would be TextRanges. <CollectionName> for the ToolBoxTab object would be ToolBoxTabs. In general, the collection name is a plural form of the object name.

Example

Sub CollectionExample()
   Dim elt As VCCodeElement
   For Each elt In VCCodeElement.Collection
      MsgBox(elt.Name)
   Next
End Sub

See Also

Applies To: AddIn Object | Breakpoint Object | BuildDependency Object | CodeAttribute Object | CodeClass Object | CodeDelegate Object | CodeElement Object | CodeEnum Object | CodeFunction Object | CodeInterface Object | CodeNameSpace Object | CodeParameter Object | CodeProperty Object | CodeStruct Object | CodeType Object | CodeVariable Object | Command Object | Configuration Object | ContextAttribute Object | Document Object | Expression Object | Language Object | OutputGroup Object | OutputWindowPane Object | Process Object | Program Object | Project Object | ProjectItem Object | Property Object | Reference Object | SelectedItem Object | SolutionConfiguration Object | SolutionContext Object | StackFrame Object | TaskItem Object | TextPane Object | TextRange Object | Thread Object | ToolBoxItem Object | ToolBoxTab Object | UIHierarchyItem Object | VCCodeAttribute Object | VCCodeBase Object | VCCodeClass Object | VCCodeDelegate Object | VCCodeElement Object | VCCodeEnum Object | VCCodeEvent Object | VCCodeFunction Object | VCCodeIDLCoClass Object | VCCodeIDLImport Object | VCCodeIDLImportLib Object | VCCodeIDLLibrary Object | VCCodeImport Object | VCCodeInclude Object | VCCodeInterface Object | VCCodeMacro Object | VCCodeMap Object | VCCodeMapEntry Object | VCCodeNamespace Object | VCCodeParameter Object | VCCodeProperty Object | VCCodeStruct Object | VCCodeTypedef Object | VCCodeUnion Object | VCCodeUsing Object | VCCodeVariable Object | Window Object | WindowConfiguration Object

Show:
© 2014 Microsoft