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

FileWebRequest クラス

WebRequest クラスファイル システム実装提供します

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public Class FileWebRequest
    Inherits WebRequest
    Implements ISerializable
Dim instance As FileWebRequest
[SerializableAttribute] 
public class FileWebRequest : WebRequest, ISerializable
[SerializableAttribute] 
public ref class FileWebRequest : public
 WebRequest, ISerializable
/** @attribute SerializableAttribute() */ 
public class FileWebRequest extends WebRequest
 implements ISerializable
SerializableAttribute 
public class FileWebRequest extends
 WebRequest implements ISerializable
解説解説
使用例使用例

FileWebRequest クラス使用してファイル システム リソースアクセスするコード例次に示します

'
' This example creates or opens a text file and stores a string in it.
 
' Both the file and the string are passed by the user.
' Note. For this program to work, the folder containing the test file
' must be shared, with its permissions set to allow write access. 

Imports System.Net
Imports System
Imports System.IO
Imports System.Text

Namespace Mssc.PluggableProtocols.File

    Module TestGetRequestStream

        Class TestGetRequestStream

            Private Shared myFileWebRequest
 As FileWebRequest

            ' Show how to use this program.
            Private Shared Sub
 showUsage()
                Console.WriteLine(ControlChars.Lf + "Please enter
 file name and timeout :")
                Console.WriteLine("Usage: vb_getrequeststream
 <systemname>/<sharedfoldername>/<filename> timeout")
                Console.WriteLine("Example: vb_getrequeststream
 ngetrequestrtream() ndpue/temp/hello.txt  1000")
                Console.WriteLine("Small time-out values (for
 example, 3 or less) cause a time-out exception.")
            End Sub

            Private Shared Sub
 makeFileRequest(ByVal fileName As String,
 ByVal timeout As Integer)
                Try
                    ' Create a Uri object.to access the file requested
 by the user. 
                    Dim myUrl As New
 Uri("file://" + fileName)

                    ' Create a FileWebRequest object.for the requeste
 file.
                    myFileWebRequest = CType(WebRequest.CreateDefault(myUrl), FileWebRequest)

                    ' Set the time-out to the value selected by the
 user.
                    myFileWebRequest.Timeout = timeout

                    ' Set the Method property to POST  
                    myFileWebRequest.Method = "POST"


                Catch e As WebException
                    Console.WriteLine(("WebException is: "
 + e.Message))
                Catch e As UriFormatException
                    Console.WriteLine(("UriFormatWebException
 is: " + e.Message))
                End Try

            End Sub

            Private Shared Sub
 writeToFile()
                Try
                    ' Enter the string to write to the file.
                    Console.WriteLine("Enter the string you want
 to write:")
                    Dim userInput As String
 = Console.ReadLine()

                    ' Convert the string to a byte array.
                    Dim encoder As New
 ASCIIEncoding
                    Dim byteArray As Byte()
 = encoder.GetBytes(userInput)

                    ' Set the ContentLength property.
                    myFileWebRequest.ContentLength = byteArray.Length

                    Dim contentLength As String
 = myFileWebRequest.ContentLength.ToString()

                    Console.WriteLine(ControlChars.Lf + "The content
 length is {0}.", contentLength)


                    ' Get the file stream handler to write to the file.
                    Dim readStream As Stream
 = myFileWebRequest.GetRequestStream()

                    ' Write to the stream. 
                    ' Note. For this to work the file must be accessible
                    ' on the network. This can be accomplished by setting
 the property
                    ' sharing of the folder containg the file.  
                    ' FileWebRequest.Credentials property cannot be
 used for this purpose.
                    readStream.Write(byteArray, 0, userInput.Length)


                    Console.WriteLine(ControlChars.Lf + "The String
 you entered was successfully written to the file.")

                    readStream.Close()

                Catch e As WebException
                    Console.WriteLine(("WebException is: "
 + e.Message))
                Catch e As UriFormatException
                    Console.WriteLine(("UriFormatWebException
 is: " + e.Message))
                End Try

            End Sub

            Public Shared Sub
 Main(ByVal args() As String)

                If args.Length < 2 Then
                    showUsage()
                Else
                    makeFileRequest(args(0), Integer.Parse(args(1)))
                    writeToFile()
                End If

            End Sub 'Main

        End Class 'TestGetRequestStream



    End Module

End Namespace

// This example creates or opens a text file and stores a string in
 it. 
// Both the file and the string are passed by the user.
// Note. For this program to work, the folder containing the test file
// must be shared, with its permissions set to allow write access. 
using System.Net;
using System;
using System.IO;
using System.Text;

namespace Mssc.PluggableProtocols.File
{
    class TestGetRequestStream
    {
        private static FileWebRequest myFileWebRequest;

        private static void
 showUsage ()
        {
            Console.WriteLine ("\nPlease enter file name and timeout :");
            Console.WriteLine ("Usage: cs_getrequeststream <systemname>/<sharedfoldername>/<filename>
 timeout");
            Console.WriteLine ("Example: cs_getrequeststream ngetrequestrtream()
 ndpue/temp/hello.txt  1000");
            Console.WriteLine ("Small time-out values (for
 example, 3 or less) cause a time-out exception.");
        }

        private static void
 makeFileRequest (string fileName, int timeout)
        {
            try
            {
                // Create a Uri object. 
                Uri myUrl = new Uri ("file://"
 + fileName);

                // Create a FileWebRequest object.
                myFileWebRequest = (FileWebRequest)WebRequest.CreateDefault (myUrl);

                // Set the time-out to the value selected by the user.
                myFileWebRequest.Timeout = timeout;

                // Set the Method property to POST  
                myFileWebRequest.Method = "POST";
            }
            catch (WebException e)
            {
                Console.WriteLine ("WebException: " + e.Message);
            }
            catch (UriFormatException e)
            {
                Console.WriteLine ("UriFormatWebException: " + e.Message);
            }
        }

        private static void
 writeToFile ()
        {
            try
            {
                // Enter the string to write to the file.
                Console.WriteLine ("Enter the string you
 want to write:");

                string userInput = Console.ReadLine ();

                // Convert the string to a byte array.
                ASCIIEncoding encoder = new ASCIIEncoding ();
                byte[] byteArray = encoder.GetBytes (userInput);

                // Set the ContentLength property.
                myFileWebRequest.ContentLength = byteArray.Length;

                string contentLength = myFileWebRequest.ContentLength.ToString
 ();

                Console.WriteLine ("\nThe content length is {0}.", contentLength);

                // Get the file stream handler to write to the file.
                Stream readStream = myFileWebRequest.GetRequestStream ();

                // Write to the file stream. 
                // Note.  For this to work, the file must be accessible
                // on the network. This can be accomplished by setting
 the property
                // sharing of the folder containg the file. 
                // FileWebRequest.Credentials property cannot be used
 for this purpose.
                readStream.Write (byteArray, 0, userInput.Length);
                Console.WriteLine ("\nThe String you entered was successfully
 written to the file.");

                readStream.Close ();
            }
            catch (WebException e)
            {
                Console.WriteLine ("The WebException: " + e.Message);
            }
            catch (UriFormatException e)
            {
                Console.WriteLine ("The UriFormatWebException: " + e.Message);
            }
        }

        public static void
 Main (String[] args)
        {
            if (args.Length < 2)
                showUsage ();
            else
            {
                makeFileRequest (args[0], int.Parse (args[1]));
                writeToFile ();
            }
        }
    }
}
// This program creates or open a text file in which it stores a string.
// Both file and string are passed by the user.
// Note. In order for this program to work, the folder containing the
 test file
// must be shared with its permissions set to allow write access.
#using <System.dll>

using namespace System;
using namespace System::IO;
using namespace System::Text;
using namespace System::Net;
ref class TestGetRequestStream
{
private:
   static FileWebRequest^ myFileWebRequest;
   static void showUsage()
   {
      Console::WriteLine( "\nPlease enter file name and timeout :" );
      Console::WriteLine( "Usage: cs_getrequeststream <systemname>/<sharedfoldername>/<filename>
 timeout" );
      Console::WriteLine( "Example: cs_getrequeststream ndpue/temp/hello.txt
 1000" );
      Console::WriteLine( "Small timeout values (for instance
 3 or less) cause a timeout exception." );
   }

   static void makeFileRequest( String^ fileName,
 int timeout )
   {
      try
      {
         
         // Create a Uri object.
         Uri^ myUrl = gcnew Uri( String::Format( "file://{0}",
 fileName ) );
         
         // Create a FileWebRequest object.
         myFileWebRequest = dynamic_cast<FileWebRequest^>(WebRequest::CreateDefault(
 myUrl ));
         
         // Set the timeout to the value selected by the user.
         myFileWebRequest->Timeout = timeout;
         
         // Set the Method property to POST
         myFileWebRequest->Method = "POST";
         
      }
      catch ( WebException^ e ) 
      {
         Console::WriteLine( "WebException: {0}", e->Message );
      }
      catch ( UriFormatException^ e ) 
      {
         Console::WriteLine( "UriFormatWebException: {0}", e->Message
 );
      }

   }

   static void writeToFile()
   {
      try
      {
         
         // Enter the string to write into the file.
         Console::WriteLine( "Enter the string you want to
 write:" );
         String^ userInput = Console::ReadLine();
         
         // Convert the string to Byte array.
         ASCIIEncoding^ encoder = gcnew ASCIIEncoding;
         array<Byte>^byteArray = encoder->GetBytes( userInput );
         
         // Set the ContentLength property.
         myFileWebRequest->ContentLength = byteArray->Length;
         String^ contentLength = myFileWebRequest->ContentLength.ToString();
         Console::WriteLine( "\nThe content length is {0}.", contentLength
 );
         
         // Get the file stream handler to write into the file.
         Stream^ readStream = myFileWebRequest->GetRequestStream();
         
         // Write to the file stream.
         // Note. In order for this to work the file must be accessible
         // on the network. This can be accomplished by setting the
 property
         // sharing of the folder containg the file. The permissions
         // can be set so everyone can modify the file.
         // FileWebRequest::Credentials property cannot be used for
 this purpose.
         readStream->Write( byteArray, 0, userInput->Length );
         Console::WriteLine( "\nThe String you entered was successfully written
 into the file." );
         
         readStream->Close();
      }
      catch ( WebException^ e ) 
      {
         Console::WriteLine( "The WebException: {0}", e->Message );
      }
      catch ( UriFormatException^ e ) 
      {
         Console::WriteLine( "The UriFormatWebException: {0}", e->Message
 );
      }

   }


public:
   static void Main()
   {
      array<String^>^args = Environment::GetCommandLineArgs();
      if ( args->Length < 3 )
            showUsage();
      else
      {
         makeFileRequest( args[ 1 ], Int32::Parse( args[ 2 ] ) );
         writeToFile();
      }
   }

};

int main()
{
   TestGetRequestStream::Main();
}

// This example creates or opens a text file and stores a string in
 it. 
// Both the file and the string are passed by the user.
// Note. For this program to work, the folder containing the test file
// must be shared, with its permissions set to allow write access. 
import System.Net.*;
import System.*;
import System.IO.*;
import System.Text.*;

class TestGetRequestStream
{
    private static FileWebRequest myFileWebRequest;

    private static void
 ShowUsage()
    {
        Console.WriteLine("\nPlease enter file name and timeout :");
        Console.WriteLine("Usage: jsl_getrequeststream <systemname>/"
 
            + "<sharedfoldername>/<filename> timeout");
        Console.WriteLine("Example: cs_getrequeststream ngetrequestrtream()"
 
            + "ndpue/temp/hello.txt  1000");
        Console.WriteLine("Small time-out values (for example,
 3 or less) " 
            + "cause a time-out exception.");
    } //ShowUsage

    private static void
 MakeFileRequest(String fileName, int timeout)
    {
        try {
            // Create a Uri object. 
            Uri myUrl = new Uri("file://"
 + fileName);

            // Create a FileWebRequest object.
            myFileWebRequest = 
                ((FileWebRequest)(WebRequest.CreateDefault(myUrl)));

            // Set the time-out to the value selected by the user.
            myFileWebRequest.set_Timeout(timeout);
            // Set the Method property to POST  
            myFileWebRequest.set_Method("POST");
        }
        catch (WebException e) {
            Console.WriteLine(("WebException: " + e.get_Message()));
        }
        catch (UriFormatException e) {
            Console.WriteLine(("UriFormatWebException: " + e.get_Message()));
        }
    } //MakeFileRequest

    private static void
 WriteToFile()
    {
        try {
            // Enter the string to write to the file.
            Console.WriteLine("Enter the string you want
 to write:");
            String userInput = Console.ReadLine();

            // Convert the string to a byte array.
            ASCIIEncoding encoder = new ASCIIEncoding();
            ubyte byteArray[] = encoder.GetBytes(userInput);

            // Set the ContentLength property.
            myFileWebRequest.set_ContentLength(byteArray.length);
            String contentLength = 
                (new Long(myFileWebRequest.get_ContentLength())).ToString();
            Console.WriteLine("\nThe content length is {0}.", contentLength);

            // Get the file stream handler to write to the file.
            Stream readStream = myFileWebRequest.GetRequestStream();

            // Write to the file stream. 
            // Note.  For this to work, the file must be accessible
            // on the network. This can be accomplished by setting the
 property
            // sharing of the folder containg the file. 
            // FileWebRequest.Credentials property cannot be used for
 
            // this purpose.
            readStream.Write(byteArray, 0, userInput.get_Length());
            Console.WriteLine("\nThe String you entered was successfully "
 
                + "written to the file.");
            readStream.Close();
        }
        catch (WebException e) {
            Console.WriteLine(("The WebException: " + e.get_Message()));
        }
        catch (UriFormatException e) {
            Console.WriteLine(("The UriFormatWebException: " 
                + e.get_Message()));
        }
    } //WriteToFile

    public static void main(String[]
 args)
    {
        if (args.length < 2) {
            ShowUsage();
        }
        else {
            MakeFileRequest(args[0], Integer.parseInt(args[1]));
            WriteToFile();
        }
    } //main
} //TestGetRequestStream
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.Net.WebRequest
      System.Net.FileWebRequest
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

FileWebRequest コンストラクタ

メモ : このコンストラクタは、互換性のために残されています。

SerializationInfo クラスStreamingContext クラス指定したインスタンスから、FileWebRequest クラス新しインスタンス初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

<ObsoleteAttribute("Serialization is obsoleted for this type.
 http://go.microsoft.com/fwlink/?linkid=14202")> _
Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New FileWebRequest(serializationInfo,
 streamingContext)
[ObsoleteAttribute("Serialization is obsoleted for this
 type. http://go.microsoft.com/fwlink/?linkid=14202")] 
protected FileWebRequest (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
[ObsoleteAttribute(L"Serialization is obsoleted for this
 type. http://go.microsoft.com/fwlink/?linkid=14202")] 
protected:
FileWebRequest (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
/** @attribute ObsoleteAttribute("Serialization is obsoleted for
 this type. http://go.microsoft.com/fwlink/?linkid=14202")
 */ 
protected FileWebRequest (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
ObsoleteAttribute("Serialization is obsoleted for this
 type. http://go.microsoft.com/fwlink/?linkid=14202") 
protected function FileWebRequest (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

serializationInfo

新しい FileWebRequest オブジェクトシリアル化するために必要な情報格納する SerializationInfo オブジェクト

streamingContext

新しFileWebRequest オブジェクト関連付けられているシリアル化ストリーム転送元を格納する StreamingContext オブジェクト

解説解説

このコンストラクタは、FileWebRequest クラスの ISerializable インターフェイス実装ます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

FileWebRequest プロパティ


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

  名前 説明
パブリック プロパティ AuthenticationLevel  この要求使用する認証レベルおよび偽装レベルを示す値を取得または設定します。 ( WebRequest から継承されます。)
パブリック プロパティ CachePolicy  この要求キャッシュ ポリシー取得または設定します。 ( WebRequest から継承されます。)
パブリック プロパティ ConnectionGroupName オーバーライドされます要求に対して使用する接続グループの名前を取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ ContentLength オーバーライドされます送信しているデータコンテンツ長を取得または設定します
パブリック プロパティ ContentType オーバーライドされます送信しているデータコンテンツ タイプ取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ Credentials オーバーライドされます。 この要求関連付けられている資格情報取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ DefaultCachePolicy  この要求既定キャッシュ ポリシー取得または設定します。 ( WebRequest から継承されます。)
パブリック プロパティ DefaultWebProxy  グローバル HTTP プロキシ取得または設定します。 ( WebRequest から継承されます。)
パブリック プロパティ Headers オーバーライドされます要求関連付けられているヘッダーの名前/値ペアコレクション取得します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ ImpersonationLevel  現在の要求対す偽装レベル取得または設定します。 ( WebRequest から継承されます。)
パブリック プロパティ Method オーバーライドされます要求使用するプロトコル メソッド取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ PreAuthenticate オーバーライドされます要求事前認証するかどうかを示す値を取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ Proxy オーバーライドされます要求使用するネットワーク プロキシ取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ RequestUri オーバーライドされます要求URI (Uniform Resource Identifier) を取得します
パブリック プロパティ Timeout オーバーライドされます要求タイムアウトするまでの時間取得または設定します
パブリック プロパティ UseDefaultCredentials オーバーライドされます。 常に NotSupportedException をスローます。
参照参照

関連項目

FileWebRequest クラス
System.Net 名前空間
File

FileWebRequest メソッド


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

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Abort オーバーライドされますインターネット リソースへの要求キャンセルします
パブリック メソッド BeginGetRequestStream オーバーライドされますデータ書き込むために使用する Stream オブジェクト非同期要求開始します
パブリック メソッド BeginGetResponse オーバーライドされますファイル システム リソースへの非同期要求開始します
パブリック メソッド Create  オーバーロードされます新しい WebRequest を初期化します。 ( WebRequest から継承されます。)
パブリック メソッド CreateDefault  指定した URI スキーム用に新しWebRequestインスタンス初期化します。 ( WebRequest から継承されます。)
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信使用するプロキシ生成必要な情報をすべて格納しているオブジェクト作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド EndGetRequestStream オーバーライドされますアプリケーションデータ書き込むために使用する Stream インスタンス非同期要求終了します
パブリック メソッド EndGetResponse オーバーライドされますファイル システム リソースへの非同期要求終了します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetLifetimeService  対象インスタンス有効期間ポリシー制御する現在の有効期間サービス オブジェクト取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetRequestStream オーバーライドされますファイル システム リソースデータ書き込む Stream オブジェクト返します
パブリック メソッド GetResponse オーバーライドされますファイル システム要求への応答返します
パブリック メソッド GetSystemWebProxy  現在の偽装ユーザーInternet Explorer設定構成されプロキシ返します。 ( WebRequest から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象インスタンス有効期間ポリシー制御する有効期間サービス オブジェクト取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド RegisterPrefix  指定した URI 用の WebRequest 派生クラス登録します。 ( WebRequest から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData SerializationInfo オブジェクトに、FileWebRequest をシリアル化するために必要なデータ設定します
参照参照

関連項目

FileWebRequest クラス
System.Net 名前空間
File

FileWebRequest メンバ

WebRequest クラスファイル システム実装提供します

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


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド FileWebRequest SerializationInfo クラスと StreamingContext クラス指定したインスタンスから、FileWebRequest クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ AuthenticationLevel  この要求使用する認証レベルおよび偽装レベルを示す値を取得または設定します。(WebRequest から継承されます。)
パブリック プロパティ CachePolicy  この要求キャッシュ ポリシー取得または設定します。(WebRequest から継承されます。)
パブリック プロパティ ConnectionGroupName オーバーライドされます要求に対して使用する接続グループの名前を取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ ContentLength オーバーライドされます送信しているデータコンテンツ長を取得または設定します
パブリック プロパティ ContentType オーバーライドされます送信しているデータコンテンツ タイプ取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ Credentials オーバーライドされます。 この要求関連付けられている資格情報取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ DefaultCachePolicy  この要求既定キャッシュ ポリシー取得または設定します。(WebRequest から継承されます。)
パブリック プロパティ DefaultWebProxy  グローバル HTTP プロキシ取得または設定します。(WebRequest から継承されます。)
パブリック プロパティ Headers オーバーライドされます要求関連付けられているヘッダーの名前/値ペアコレクション取得します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ ImpersonationLevel  現在の要求対す偽装レベル取得または設定します。(WebRequest から継承されます。)
パブリック プロパティ Method オーバーライドされます要求使用するプロトコル メソッド取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ PreAuthenticate オーバーライドされます要求事前認証するかどうかを示す値を取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ Proxy オーバーライドされます要求使用するネットワーク プロキシ取得または設定します。このプロパティは、今後使用するために予約されています。
パブリック プロパティ RequestUri オーバーライドされます要求URI (Uniform Resource Identifier) を取得します
パブリック プロパティ Timeout オーバーライドされます要求タイムアウトするまでの時間取得または設定します
パブリック プロパティ UseDefaultCredentials オーバーライドされます。 常に NotSupportedException をスローます。
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Abort オーバーライドされますインターネット リソースへの要求キャンセルします
パブリック メソッド BeginGetRequestStream オーバーライドされますデータ書き込むために使用する Stream オブジェクト非同期要求開始します
パブリック メソッド BeginGetResponse オーバーライドされますファイル システム リソースへの非同期要求開始します
パブリック メソッド Create  オーバーロードされます新しWebRequest初期化します。 (WebRequest から継承されます。)
パブリック メソッド CreateDefault  指定した URI スキーム用に新しWebRequestインスタンス初期化します。 (WebRequest から継承されます。)
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信使用するプロキシ生成必要な情報をすべて格納しているオブジェクト作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド EndGetRequestStream オーバーライドされますアプリケーションデータ書き込むために使用する Stream インスタンス非同期要求終了します
パブリック メソッド EndGetResponse オーバーライドされますファイル システム リソースへの非同期要求終了します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetLifetimeService  対象インスタンス有効期間ポリシー制御する現在の有効期間サービス オブジェクト取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetRequestStream オーバーライドされますファイル システム リソースデータ書き込む Stream オブジェクト返します
パブリック メソッド GetResponse オーバーライドされますファイル システム要求への応答返します
パブリック メソッド GetSystemWebProxy  現在の偽装ユーザーInternet Explorer設定構成されプロキシ返します。 (WebRequest から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象インスタンス有効期間ポリシー制御する有効期間サービス オブジェクト取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド RegisterPrefix  指定した URI 用の WebRequest 派生クラス登録します。 (WebRequest から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData SerializationInfo オブジェクトに、FileWebRequestシリアル化するために必要なデータ設定します
参照参照

関連項目

FileWebRequest クラス
System.Net 名前空間
File


このページでは「.NET Framework クラス ライブラリ リファレンス」からFileWebRequestを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFileWebRequestを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFileWebRequest を検索

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

辞書ショートカット

すべての辞書の索引

「FileWebRequest」の関連用語

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

   

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



FileWebRequestのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS