Export (0) Print
Expand All
Expand Minimize

Keyword Property

Visual Studio .NET 2003

Returns the collection of Dynamic Help keywords associated with a project.

[Visual Basic .NET]
Public Property Keyword() As String
[Visual Basic 6]
Property Get Keyword() As String
Property Let Keyword( _
   ByVal NewValue As String _
) 
[C++]
HRESULT __stdcall get_Keyword(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_Keyword(
   /* [in] */ BSTR NewValue
);
[C#]
public string Keyword {get; set;}
[JScript .NET]
public function get Keyword() : String
public function set Keyword(
   NewValue : String
)

Remarks

The keyword determines which topics appear in the Dynamic Help window.

Example

The following sample code uses the Keyword property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        MsgBox(prj.Keyword)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCProject Object

Show:
© 2014 Microsoft