翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 4
System.Text 名前空間
System.Text
StringBuilder クラス
StringBuilder メソッド
Append メソッド
 Append メソッド (Int32)
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
.NET Framework Class Library
StringBuilder..::.Append Method (Int32)

Updated: December 2010

Appends the string representation of a specified 32-bit signed integer to this instance.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic
Public Function Append ( _
    value As Integer _
) As StringBuilder
C#
public StringBuilder Append(
    int value
)
Visual C++
public:
StringBuilder^ Append(
    int value
)
F#
member Append : 
        value:int -> StringBuilder 

Parameters

value
Type: System..::.Int32
The value to append.

Return Value

Type: System.Text..::.StringBuilder
A reference to this instance after the append operation has completed.
ExceptionCondition
ArgumentOutOfRangeException

Enlarging the value of this instance would exceed MaxCapacity.

The Append method modifies the existing instance of this class; it does not return a new class instance. Because of this, you can call a method or property on the existing reference and you do not have to assign the return value to a StringBuilder object, as the following example illustrates.

Visual Basic
Dim sb As New System.Text.StringBuilder("The range of a 32-bit integer: ")
sb.Append(Int32.MinValue).Append(" to ").Append(Int32.MaxValue)
Console.WriteLine(sb)
' The example displays the following output:
'       The range of a 32-bit integer: -2147483648 to 2147483647
C#
System.Text.StringBuilder sb = new 
       System.Text.StringBuilder("The range of a 32-bit integer: ");
sb.Append(Int32.MinValue).Append(" to ").Append(Int32.MaxValue);
Console.WriteLine(sb);
// The example displays the following output:
//       The range of a 32-bit integer: -2147483648 to 2147483647

The Append method calls the Int32..::.ToString(IFormatProvider) method to get the string representation of value for the current culture. To control the formatting of value, call the AppendFormat method.

The capacity of this instance is adjusted as needed.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Date

History

Reason

December 2010

Expanded the Remarks section and removed the example.

Customer feedback.

.NET Framework クラス ライブラリ
StringBuilder..::.Append メソッド (Int32)

更新 : 2010 年 12 月

指定した 32 ビット符号付き整数の文字列形式をこのインスタンスに追加します。

名前空間:  System.Text
アセンブリ:  mscorlib (mscorlib.dll 内)
Visual Basic
Public Function Append ( _
    value As Integer _
) As StringBuilder
C#
public StringBuilder Append(
    int value
)
Visual C++
public:
StringBuilder^ Append(
    int value
)
F#
member Append : 
        value:int -> StringBuilder 

パラメーター

value
型: System..::.Int32
追加する値。

戻り値

型: System.Text..::.StringBuilder
追加操作が完了した後のこのインスタンスへの参照。
例外条件
ArgumentOutOfRangeException

このインスタンスの値を増やすと、MaxCapacity を超えます。

Append メソッドは、このクラスの既存のインスタンスを変更します。新しいクラス インスタンスは返しません。 このため、次の例に示すように、既存の参照についてメソッドまたはプロパティを呼び出すことができ、戻り値を StringBuilder オブジェクトに割り当てる必要はありません。

Visual Basic
Dim sb As New System.Text.StringBuilder("The range of a 32-bit integer: ")
sb.Append(Int32.MinValue).Append(" to ").Append(Int32.MaxValue)
Console.WriteLine(sb)
' The example displays the following output:
'       The range of a 32-bit integer: -2147483648 to 2147483647
C#
System.Text.StringBuilder sb = new 
       System.Text.StringBuilder("The range of a 32-bit integer: ");
sb.Append(Int32.MinValue).Append(" to ").Append(Int32.MaxValue);
Console.WriteLine(sb);
// The example displays the following output:
//       The range of a 32-bit integer: -2147483648 to 2147483647

Append メソッドは、Int32..::.ToString(IFormatProvider) メソッドを呼び出して、現在のカルチャの value の文字列形式を取得します。 value の書式設定を制御するために、AppendFormat メソッドを呼び出します。

このインスタンスの容量は、必要に応じて調整されます。

.NET Framework

サポート対象: 4、3.5、3.0、2.0、1.1、1.0

.NET Framework Client Profile

サポート対象: 4、3.5 SP1

サポート対象:

Windows 7, Windows Vista SP1 以降, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core はサポート対象外), Windows Server 2008 R2 (SP1 以降で Server Core をサポート), Windows Server 2003 SP2

.NET Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

日付

History

理由

2010 年 12 月

「解説」を追加し、例を削除。

カスタマー フィードバック

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker