Megosztás a következőn keresztül:


CodeProperty2 Interface

An object defining a property construct in a source file.

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

Syntax

'Declaration
<GuidAttribute("33770C02-21B7-4224-A577-6877BDBA60EA")> _
Public Interface CodeProperty2 _
    Inherits CodeProperty
'Usage
Dim instance As CodeProperty2
[GuidAttribute("33770C02-21B7-4224-A577-6877BDBA60EA")]
public interface CodeProperty2 : CodeProperty
[GuidAttribute(L"33770C02-21B7-4224-A577-6877BDBA60EA")]
public interface class CodeProperty2 : CodeProperty
public interface CodeProperty2 extends CodeProperty

Remarks

The CodeProperty2 object represents a property and determines how properties are defined in the various languages. For example, Visual Basic has two separate functions, one that gets a value and another that puts it. Together they form a property. In Visual C#, however, one declaration form declares a property and whether it has a getter and a setter.

Note

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).

See Also

Reference

CodeProperty2 Members

EnvDTE80 Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples

Discovering Code by Using the Code Model (Visual Basic)

Discovering Code by Using the Code Model (Visual C#)