PerformanceCounterCategory.CategoryName プロパティ
アセンブリ: System (system.dll 内)

Dim instance As PerformanceCounterCategory Dim value As String value = instance.CategoryName instance.CategoryName = value
/** @property */ public String get_CategoryName () /** @property */ public void set_CategoryName (String value)
この PerformanceCounterCategory インスタンスを関連付けるパフォーマンス カウンタ カテゴリまたはパフォーマンス オブジェクトの名前。


PerformanceCounterCategory で PerformanceCounterCategory を作成するコード例を次に示します。PerformanceCounterCategory およびコンピュータ名を入力するよう求めるメッセージを表示し、入力された値を使用して CategoryName プロパティおよび MachineName プロパティを設定します。次に、CategoryName、MachineName、および CategoryHelp の各プロパティの値を表示します。また、PerformanceCounterCategory にアクセスできない場合はエラー メッセージを表示します。
Sub Main(ByVal args() As String) Dim categoryName As String = "" Dim machineName As String = "" Dim pcc As New PerformanceCounterCategory ' Prompt for fields and set the corresponding properties. While categoryName.Length = 0 Console.Write("Please enter a non-blank category name: ") categoryName = Console.ReadLine().Trim If categoryName.Length > 0 Then pcc.CategoryName = categoryName End If End While While machineName.Length = 0 Console.Write( _ "Enter a non-blank computer name ['.' for local]: ") machineName = Console.ReadLine().Trim If machineName.Length > 0 Then pcc.MachineName = machineName End If End While ' Display the properties of the PerformanceCounterCategory object. Try Console.WriteLine(" Category: {0}", pcc.CategoryName) Console.WriteLine(" Computer: {0}", pcc.MachineName) Console.WriteLine(" Help text: {0}", pcc.CategoryHelp) Catch ex As Exception Console.WriteLine("Error getting the properties of the " & _ "PerformanceCounterCategory object:") Console.WriteLine(ex.Message) End Try End Sub


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PerformanceCounterCategory クラス
PerformanceCounterCategory メンバ
System.Diagnostics 名前空間
MachineName
PerformanceCounter クラス
Weblioに収録されているすべての辞書からPerformanceCounterCategory.CategoryName プロパティを検索する場合は、下記のリンクをクリックしてください。

- PerformanceCounterCategory.CategoryName プロパティのページへのリンク