次の方法で共有


CodeDomDocDataAdapter.CompileUnit Property

Gets the entire compile unit in which the document data exists.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Public ReadOnly Property CompileUnit As CodeCompileUnit
    Get
'使用
Dim instance As CodeDomDocDataAdapter
Dim value As CodeCompileUnit

value = instance.CompileUnit
public CodeCompileUnit CompileUnit { get; }
public:
property CodeCompileUnit^ CompileUnit {
    CodeCompileUnit^ get ();
}
member CompileUnit : CodeCompileUnit
function get CompileUnit () : CodeCompileUnit

Property Value

Type: System.CodeDom.CodeCompileUnit
CodeCompileUnit, or null if the document data has not been set.

Remarks

Since this method causes the CodeCompileUnit to be cached, it adds an event handler to listen for changes to the document data and then reset the compile unit.

.NET Framework Security

See Also

Reference

CodeDomDocDataAdapter Class

CodeDomDocDataAdapter Members

Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace