LanguageService.CreateDocumentProperties Method
Instantiates a DocumentProperties class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaração
Public Overridable Function CreateDocumentProperties ( _
mgr As CodeWindowManager _
) As DocumentProperties
public virtual DocumentProperties CreateDocumentProperties(
CodeWindowManager mgr
)
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.