CodeEvent.OverrideKind Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets of sets the override modifiers on a code event.
public:
property EnvDTE80::vsCMOverrideKind OverrideKind { EnvDTE80::vsCMOverrideKind get(); void set(EnvDTE80::vsCMOverrideKind value); };
public:
property EnvDTE80::vsCMOverrideKind OverrideKind { EnvDTE80::vsCMOverrideKind get(); void set(EnvDTE80::vsCMOverrideKind value); };
[System.Runtime.InteropServices.DispId(43)]
public EnvDTE80.vsCMOverrideKind OverrideKind { [System.Runtime.InteropServices.DispId(43)] get; [System.Runtime.InteropServices.DispId(43)] set; }
[<System.Runtime.InteropServices.DispId(43)>]
[<get: System.Runtime.InteropServices.DispId(43)>]
[<set: System.Runtime.InteropServices.DispId(43)>]
member this.OverrideKind : EnvDTE80.vsCMOverrideKind with get, set
Public Property OverrideKind As vsCMOverrideKind
Property Value
Returns a value from the vsCMOverrideKind enumeration describing how a code event can be overridden.
- Attributes
Examples
The following example demonstrates how to use the OverrideKind property.
public static void OverrideKind(EnvDTE80.DTE2 dte)
{
TextSelection objTextSel;
EnvDTE80.CodeEvent codeEvent;
objTextSel = (TextSelection)dte.ActiveDocument.Selection;
codeEvent = (EnvDTE80.CodeEvent)objTextSel. _
ActivePoint.get_CodeElement(vsCMElement.vsCMElementEvent);
MessageBox.Show("\nOverrideKind property: " +
codeEvent.OverrideKind, "Testing CodeEvent");
}
Remarks
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.