C# 0 The Complete Reference


data.txt . Notice how few lines of code are involved. By changing the string specified by  uri



Download 4,07 Mb.
Pdf ko'rish
bet1045/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   1041   1042   1043   1044   1045   1046   1047   1048   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

data.txt

. Notice how few lines of code are involved. By changing the string specified by 



uri

,

you can download information from any URI, including specific files.



www.freepdf-books.com


PART II

C h a p t e r   2 5 :  

N e t w o r k i n g   T h r o u g h   t h e   I n t e r n e t   U s i n g   S y s t e m . N e t    

845


public byte[ ]

    UploadData(Uri 



uri

,

                      string 



how

,

                      byte[ ] 



info

)

Writes the information specified by 



info

 to the URI specified 

by

uri.

 The response is returned. The string passed in 



how

specifies how the information will be written. 

public byte[ ]

    UploadFile(string 



uri

, string 



fname

)

Writes the information in the file specified by 



fname

 to the 


URI specified by 

uri.

 The response is returned.

public byte[ ]

    UploadFile(Uri 



uri

, string 



fname

)

Writes the information in the file specified by 



fname

 to the 


URI specified by 

uri.

 The response is returned.

public byte[ ]

    UploadFile(string 



uri

,

                    string 



how

,

                    string 



fname

)

Writes the information in the file specified by 



fname

 to the 


URI specified by 

uri.

 The response is returned. The string 

passed in 

how

 specifies how the information will be written.

public byte[ ]

    UploadFile(Uri 



uri

,

                    string 



how

,

                    string 



fname

)

Writes the information in the file specified by 



fname

 to the 


URI specified by 

uri.

 The response is returned. The string 

passed in 

how

 specifies how the information will be written.

public string UploadString(string 

uri

, string 



str

)

Writes 



str

 to the URI specified by 



uri.

 The response is 

returned. 

public string UploadString(Uri 



uri

, string 



str

)

Writes 



str

 to the URI specified by 



uri.

 The response is 

returned. 

public string UploadString(string 



uri

,

                                       string 



how

,

                                       string 



str

)

Writes 



str

 to the URI specified by 



uri.

 The response is 

returned. The string passed in 

how

 specifies how the 

information will be written. 

public string UploadString(Uri 



uri

,

                                       string how,



                                       string 

str

)

Writes 



str

 to the URI specified by 



uri

. The response is 

returned. The string passed in 

how

 specifies how the 

information will be written. 

public byte[ ]

    UploadValues(string 

uri

,

                        NameValueCollection 



vals

)

Writes the values in the collection specified by 



vals

 to the 


URI specified by 

uri.

 The response is returned.

public byte[ ]

    UploadValues(Uri 



uri

,

                        NameValueCollection 



vals

 )

Writes the values in the collection specified by 



vals

 to the 


URI specified by 

uri.

 The response is returned. 

public byte[ ]

    UploadValues(string 



uri

,

                         string 



how

,

                         NameValueCollection 



vals

)

Writes the values in the collection specified by 



vals

 to the 


URI specified by 

uri.

 The response is returned. The string 

passed in 

how

 specifies how the information will be written.

public byte[ ]

    UploadValues(Uri 



uri

,

                         string 



how

,

                         NameValueCollection 



vals

)

Writes the values in the collection specified by 



vals

 to the 


URI specified by 

uri.

 The response is returned. The string 

passed in 

how

 specifies how the information will be written. 

T

ABLE


 25-7 

The Synchronous Methods Defi ned by 

WebClient

(continued)

Method


Description

Although



Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   1041   1042   1043   1044   1045   1046   1047   1048   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish