-
public CodeGeneratorOptions();
-
-
概要
-
System.CodeDom.Compiler.CodeGeneratorOptions クラスの新しいインスタンスを初期化します。
▲ページ先頭へ
-
public object this[ string index ] { get; set; }
-
-
概要
-
取得または、指定したインデックス位置にオブジェクトを設定します。
-
パラメーター
-
-
index
-
取得するオブジェクトに関連付けられている名前。
-
戻り値
-
指定した名前に関連付けられているオブジェクト。 コレクション内の指定した名前に関連付けられたオブジェクトが存在しない場合 nullします。
-
public string IndentString{ get; set; }
-
-
概要
-
インデントに使用する文字列を取得または設定します。
-
戻り値
-
インデントに使用する文字を含む文字列。
-
public string BracingStyle{ get; set; }
-
-
概要
-
中かっこの記述時に適用するスタイルを取得または設定します。
-
戻り値
-
使用する中かっこのスタイルを含む文字列。
-
public bool ElseOnClosing{ get; set; }
-
-
概要
-
else、catch、finally の各ブロックを中かっこも含め、先行する if ブロックまたは try ブロックの終了行に追加するかどうかを示す値を取得または設定します。
-
戻り値
-
true 場合は、その他を追加する必要があります。それ以外の場合、 falseです。 このプロパティの既定値は false です。
-
public bool BlankLinesBetweenMembers{ get; set; }
-
-
概要
-
各メンバーの間に空行を挿入するかどうかを示す値を取得または設定します。
-
戻り値
-
true 空白行を挿入する場合それ以外の場合、 falseです。 このプロパティの値は、既定では、 trueです。
-
[ComVisible( false )]
public bool VerbatimOrder{ get; set; }
-
-
概要
-
メンバーがメンバー コレクションに現れる順番でメンバーを生成するかどうかを示す値を取得または設定します。
-
戻り値
-
true メンバー コレクションに出現する順序でメンバーを生成するにはそれ以外の場合、 falseです。 このプロパティの既定値は false です。
-
Item[String]
-
指定したインデックスにあるオブジェクトを取得または設定します。
▲ページ先頭へ
-
Equals(Object)
-
指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。
(Inherited from Object)
-
GetHashCode()
-
既定のハッシュ関数として機能します。
(Inherited from Object)
-
GetType()
-
現在のインスタンスの Type を取得します。
(Inherited from Object)
-
MemberwiseClone()
-
現在の Object の簡易コピーを作成します。
(Inherited from Object)
-
ToString()
-
現在のオブジェクトを表す文字列を返します。
(Inherited from Object)
▲ページ先頭へ
-
LinkDemand
-
直前の呼び出し元に対する完全な信頼。 このクラスは、部分的に信頼されたコードでは使用できません。
-
InheritanceDemand
-
継承クラスの完全な信頼。 部分的に信頼されたコード
▲ページ先頭へ
// Creates a new CodeGeneratorOptions.
// 新しいCodeGeneratorOptionsを作成する。
CodeGeneratorOptions genOptions = new CodeGeneratorOptions();
// Sets a value indicating that the code generator should insert blank lines between type members.
// タイプメンバーの間で、コードジェネレータが空白を挿入するべきであることを示している値が線を引くセット。
genOptions.BlankLinesBetweenMembers = true;
// Sets the style of bracing format to use: either "Block" to start a bracing block on the same line as the declaration of its container, or "C" to start the bracing for the block on the following line.
// セット 使用へのサポートフォーマットのスタイル :以下のラインのブロックのためにサポートを始めるためにそのコンテナ、または「C」の宣言と同じラインのサポートブロックを始めるために「塞ぎなさい」。
genOptions.BracingStyle = "C";
// Sets a value indicating that the code generator should not append an else, catch or finally block, including brackets, at the closing line of a preceeding if or try block.
// セット コードジェネレータが付加するべきではないことを示している値 他に つかむか、またはブラケットを含み、最終的に、preceeding ならば または試みブロックの閉まっているラインに塞ぎなさい。
genOptions.ElseOnClosing = false;
// Sets the string to indent each line with.
// セット それによって個々のラインを湾入させるストリング 。
genOptions.IndentString = " ";
// Uses the CodeGeneratorOptions indexer property to set an example object to the type's string-keyed ListDictionary.
// 例オブジェクトを、タイプのストリングキー入力されたListDictionaryに設定するために、CodeGeneratorOptionsインデクサープロパティを使用する。
// Custom ICodeGenerator implementations can use objects in this dictionary to customize process behavior.
// カスタムのICodeGeneratorインプリメンテーションは、プロセス行動をカスタマイズするために、この辞書のオブジェクトを用いることができる。
genOptions["CustomGeneratorOptionStringExampleID"] = "BuildFlags: /A /B /C /D /E";
▲ページ先頭へ
public class CodeGeneratorOptions
▲ページ先頭へ
#region アセンブリ System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:¥Program Files (x86)¥Reference Assemblies¥Microsoft¥Framework¥.NETFramework¥v4.6.1¥System.dll
#endregion
using System.Reflection;
using System.Runtime.InteropServices;
namespace System.CodeDom.Compiler
{
//
// 概要:
// コード ジェネレーターによって使用されるオプションのセットを表します。
[DefaultMember( "Item" )]
public class CodeGeneratorOptions
{
//
// 概要:
// System.CodeDom.Compiler.CodeGeneratorOptions クラスの新しいインスタンスを初期化します。
public CodeGeneratorOptions();
//
// 概要:
// 取得または、指定したインデックス位置にオブジェクトを設定します。
//
// パラメーター:
// index:
// 取得するオブジェクトに関連付けられている名前。
//
// 戻り値:
// 指定した名前に関連付けられているオブジェクト。 コレクション内の指定した名前に関連付けられたオブジェクトが存在しない場合 nullします。
public object this[ string index ] { get; set; }
//
// 概要:
// 取得またはインデントに使用する文字列を設定します。
//
// 戻り値:
// インデントに使用する文字を含む文字列。
public string IndentString
{
get;
set;
}
//
// 概要:
// 取得またはかっこを使用するスタイルを設定します。
//
// 戻り値:
// 使用する中かっこのスタイルを含む文字列。
public string BracingStyle
{
get;
set;
}
//
// 概要:
// 取得または追加するかどうかを示す値を設定、 else, 、catch, 、または finally それぞれ前の終了行目で、角かっこを含むブロック if または
// try ブロックします。
//
// 戻り値:
// true 場合は、その他を追加する必要があります。それ以外の場合、 falseです。 このプロパティの既定値は false です。
public bool ElseOnClosing
{
get;
set;
}
//
// 概要:
// 取得またはメンバー間に空白行を挿入するかどうかを示す値を設定します。
//
// 戻り値:
// true 空白行を挿入する場合それ以外の場合、 falseです。 このプロパティの値は、既定では、 trueです。
public bool BlankLinesBetweenMembers
{
get;
set;
}
//
// 概要:
// 取得またはメンバーのコレクションに出現する順序でメンバーを生成するかどうかを示す値を設定します。
//
// 戻り値:
// true メンバー コレクションに出現する順序でメンバーを生成するにはそれ以外の場合、 falseです。 このプロパティの既定値は false です。
[ComVisible( false )]
public bool VerbatimOrder
{
get;
set;
}
}
}
▲ページ先頭へ