ServerComputerとは? わかりやすく解説

ServerComputer クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

オーディオ、時計、キーボード、ファイル システムなどのコンピュータ コンポーネントを操作するためのプロパティを提供します。

名前空間: Microsoft.VisualBasic.Devices
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

Public Class ServerComputer
Dim instance As ServerComputer
public class ServerComputer
public ref class ServerComputer
public class ServerComputer
public class ServerComputer
解説解説

詳細については、Visual Basic のトピック「My.Computer オブジェクト」を参照してください。

My.Computer オブジェクトが公開するプロパティは、アプリケーションが配置されたコンピュータに関する情報を、実行時に調査して返します。多くの場合、このデータは、開発用コンピュータ上で利用できるデータと異なります。

My.Computer.Audio オブジェクトなど、サーバー アプリケーションでは利用できないメンバもあります。

My.Computer オブジェクトを使ったタスクの例を次の表に示します。

使用例使用例

この例では、My.Computer.Name プロパティを使用して、コードが実行されたコンピュータ名を表示します。

MsgBox("Computer name: " & My.Computer.Name)
継承階層継承階層
System.Object
  Microsoft.VisualBasic.Devices.ServerComputer
     Microsoft.VisualBasic.Devices.Computer
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServerComputer メンバ
Microsoft.VisualBasic.Devices 名前空間
Computer クラス
ServerComputer クラス
その他の技術情報
My.Computer オブジェクト
My.Computer オブジェクトのメンバ
My.Computer.Audio オブジェクト
My.Computer.Clipboard オブジェクト
My.Computer.Clock オブジェクト
My.Computer.FileSystem オブジェクト
My.Computer.Info オブジェクト
My.Computer.Keyboard オブジェクト
My.Computer.Mouse オブジェクト
My.Computer.Network オブジェクト
My.Computer.Ports オブジェクト
My.Computer.Registry オブジェクト

ServerComputer コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

ServerComputer クラスの新しいインスタンスを初期化します。

名前空間: Microsoft.VisualBasic.Devices
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

Dim instance As New ServerComputer
public ServerComputer ()
public:
ServerComputer ()
public ServerComputer ()
public function ServerComputer ()
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServerComputer クラス
ServerComputer メンバ
Microsoft.VisualBasic.Devices 名前空間
その他の技術情報
My.Computer オブジェクト

ServerComputer プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

ServerComputer クラス
Microsoft.VisualBasic.Devices 名前空間
Computer クラス
ServerComputer クラス

その他の技術情報

My.Computer オブジェクト
My.Computer オブジェクトのメンバ
My.Computer.Audio オブジェクト
My.Computer.Clipboard オブジェクト
My.Computer.Clock オブジェクト
My.Computer.FileSystem オブジェクト
My.Computer.Info オブジェクト
My.Computer.Keyboard オブジェクト
My.Computer.Mouse オブジェクト
My.Computer.Network オブジェクト
My.Computer.Ports オブジェクト
My.Computer.Registry オブジェクト

ServerComputer メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ServerComputer クラス
Microsoft.VisualBasic.Devices 名前空間
Computer クラス
ServerComputer クラス

その他の技術情報

My.Computer オブジェクト
My.Computer オブジェクトのメンバ
My.Computer.Audio オブジェクト
My.Computer.Clipboard オブジェクト
My.Computer.Clock オブジェクト
My.Computer.FileSystem オブジェクト
My.Computer.Info オブジェクト
My.Computer.Keyboard オブジェクト
My.Computer.Mouse オブジェクト
My.Computer.Network オブジェクト
My.Computer.Ports オブジェクト
My.Computer.Registry オブジェクト

ServerComputer メンバ

オーディオ、時計、キーボード、ファイル システムなどのコンピュータ コンポーネントを操作するためのプロパティを提供します。

ServerComputer データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ServerComputer ServerComputer クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ServerComputer クラス
Microsoft.VisualBasic.Devices 名前空間
Computer クラス
ServerComputer クラス

その他の技術情報

My.Computer オブジェクト
My.Computer オブジェクトのメンバ
My.Computer.Audio オブジェクト
My.Computer.Clipboard オブジェクト
My.Computer.Clock オブジェクト
My.Computer.FileSystem オブジェクト
My.Computer.Info オブジェクト
My.Computer.Keyboard オブジェクト
My.Computer.Mouse オブジェクト
My.Computer.Network オブジェクト
My.Computer.Ports オブジェクト
My.Computer.Registry オブジェクト



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ServerComputer」の関連用語

ServerComputerのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ServerComputerのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS