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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaración
Public Overridable Function CreateDocumentProperties ( _
mgr As CodeWindowManager _
) As DocumentProperties
'Uso
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
)
abstract CreateDocumentProperties :
mgr:CodeWindowManager -> DocumentProperties
override CreateDocumentProperties :
mgr:CodeWindowManager -> DocumentProperties
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.