WebService.Server プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebService.Server プロパティの意味・解説 

WebService.Server プロパティ

現在の要求対する HttpServerUtility を取得します

名前空間: System.Web.Services
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Dim instance As WebService
Dim value As HttpServerUtility

value = instance.Server
public HttpServerUtility Server { get; }
public:
property HttpServerUtility^ Server {
    HttpServerUtility^ get ();
}
/** @property */
public HttpServerUtility get_Server ()
public function get Server
 () : HttpServerUtility

プロパティ
HttpServerUtility オブジェクト

解説解説
使用例使用例

Server プロパティ使用してWeb サーバーコンピュータ名を返す例を次に示します

<%@ WebService Language="VB" Class="Util"
 %> 

Imports System.Web.Services

Public Class Util
    Inherits WebService
    
    <WebMethod(Description := "Obtains the Computer Machine
 Name", _
        EnableSession := False)> _
    Public Function GetMachineName() As
 String
        
        Return Server.MachineName
    End Function
End Class
    
<%@ WebService Language="C#" Class="Util" %>
 
 using System.Web.Services;
 
 public class Util: WebService {
    [ WebMethod(Description="Obtains the Server Computer Name",EnableSession=false)]
    public string GetMachineName() {
       return Server.MachineName;
    }
 }
    
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebService クラス
WebService メンバ
System.Web.Services 名前空間
HttpServerUtility
CreateObject



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

WebService.Server プロパティのお隣キーワード
検索ランキング

   

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



WebService.Server プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS