CodeParameter2 Interface
Collapse the table of content
Expand the table of content

CodeParameter2 Interface

An object defining a parameter to a function, property, and so on.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

public interface CodeParameter2 : CodeParameter

The CodeParameter2 type exposes the following members.

Public propertyAttributesGets a collection of the attributes for the parent object.
Public propertyChildrenGets a collection of objects contained within this code construct.
Public propertyCollectionGets the collection containing the CodeParameter object supporting this property.
Public propertyDefaultValueGets or sets the literal value that exists in the code.
Public propertyDocCommentGets or sets the document comment for the current code model element.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the edit point that is the location of the end of the code item.
Public propertyExtenderGets the requested Extender if it is available for the CodeParameter object.
Public propertyExtenderCATIDGets the Extender category ID (CATID) for the CodeParameter object.
Public propertyExtenderNamesGets a list of available Extenders for the object.
Public propertyFullNameGets the full path and name of the object's file.
Public propertyInfoLocationGets the capabilities of the code model.
Public propertyIsCodeTypeGets a value indicating whether a CodeType object can be obtained from this CodeParameter object.
Public propertyKindGets an enumeration indicating the type of object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyNameGets or sets the name of the object.
Public propertyParameterKindGets or sets a value indicating whether the parameter is expected to have value or reference behavior
Public propertyParentGets the immediate parent object of a CodeParameter object.
Public propertyProjectItemGets the ProjectItem associated with the given object.
Public propertyStartPointGets a TextPoint object that defines the beginning of the code item.
Public propertyTypeGets or sets an object representing the programmatic type.

Public methodAddAttributeCreates a new attribute code construct and inserts the code in the correct location.
Public methodGetEndPointGets a TextPoint object that marks the end of the code element definition.
Public methodGetStartPointGets a TextPoint object that defines the beginning of the code element definition.

The CodeParameter object represents formal parameters of a function definition.


The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic).

Community Additions

© 2015 Microsoft