Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Instantiates a DocumentProperties class.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Function CreateDocumentProperties ( _
mgr As CodeWindowManager _
) As DocumentProperties
'Usage
Dim instance As LanguageService
Dim mgr As CodeWindowManager
Dim returnValue As DocumentProperties
returnValue = instance.CreateDocumentProperties(mgr)
public virtual DocumentProperties CreateDocumentProperties(
CodeWindowManager mgr
)
public:
virtual DocumentProperties^ CreateDocumentProperties(
CodeWindowManager^ mgr
)
public function CreateDocumentProperties(
mgr : CodeWindowManager
) : DocumentProperties
Parameters
mgr
Type: Microsoft.VisualStudio.Package.CodeWindowManager[in] A CodeWindowManager object that the document properties can refer to.
Return Value
Type: Microsoft.VisualStudio.Package.DocumentProperties
If successful, returns a DocumentProperties object; otherwise, returns a null value.
Remarks
The base method always returns a null value (that is, the base implementation does not support extra document properties). If you wish to support additional properties for source files that contain your language, you must create a class derived from DocumentProperties and return an instance of your class.
This method is called from the CodeWindowManager constructor so a new DocumentProperties object is associated with each code window.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.