C# Class Common.Helper.NetworkHelper

Afficher le fichier Open project: ParryQiu/Generate-Cnblogs-Articles-To-Markdown

Méthodes publiques

Méthode Description
GetHtmlFromGet ( string urlString, Encoding encoding ) : string

通过GET方式获取页面的方法

SaveBinaryFile ( WebResponse response, string fileName ) : bool
SavePhotoFromUrl ( string fileName, string url ) : bool

Method Details

GetHtmlFromGet() public static méthode

通过GET方式获取页面的方法
public static GetHtmlFromGet ( string urlString, Encoding encoding ) : string
urlString string 请求的URL
encoding System.Text.Encoding 页面编码
Résultat string

SaveBinaryFile() public static méthode

public static SaveBinaryFile ( WebResponse response, string fileName ) : bool
response System.Net.WebResponse
fileName string
Résultat bool

SavePhotoFromUrl() public static méthode

public static SavePhotoFromUrl ( string fileName, string url ) : bool
fileName string
url string
Résultat bool