CodeCompileUnit.StartDirectives Tulajdonság

Definíció

Lekéri az CodeDirectiveCollection indítási irányelveket tartalmazó objektumot.

public:
 property System::CodeDom::CodeDirectiveCollection ^ StartDirectives { System::CodeDom::CodeDirectiveCollection ^ get(); };
public System.CodeDom.CodeDirectiveCollection StartDirectives { get; }
member this.StartDirectives : System.CodeDom.CodeDirectiveCollection
Public ReadOnly Property StartDirectives As CodeDirectiveCollection

Tulajdonság értéke

Indítási CodeDirectiveCollection irányelveket tartalmazó objektum.

Példák

Az alábbi példakód a StartDirectives tulajdonság használatát mutatja be. Ez a példa egy nagyobb, az CodeRegionDirective osztályhoz tartozó példa része.

cu.StartDirectives.Add(new CodeRegionDirective(CodeRegionMode.Start,
    "Compile Unit Region"));
cu.StartDirectives.Add(New CodeRegionDirective(CodeRegionMode.Start, "Compile Unit Region"))

A következőre érvényes: