C# 클래스 LtiLibrary.Core.Common.UrlEncodingParser

A query string or UrlEncoded form parser and editor class that allows reading and writing of urlencoded key value pairs used for query string and HTTP form data. Useful for parsing and editing querystrings inside of non-Web code that doesn't have easy access to the HttpUtility class.
Supports multiple values per key From Rick Strahl, http://weblog.west-wind.com/posts/2014/Sep/08/A-NET-QueryString-and-Form-Data-Parser
상속: System.Collections.Specialized.NameValueCollection
파일 보기 프로젝트 열기: andyfmiller/LtiLibrary 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Parse ( string query ) : NameValueCollection

Parses the query string into the internal dictionary and optionally also returns this dictionary

SetValues ( string key, IEnumerable values ) : void

Assigns multiple values to the same key

ToString ( ) : string

Writes out the urlencoded data/query string or full URL based on the internally set values.

UrlEncodingParser ( string queryStringOrUrl = null ) : System

Always pass in a UrlEncoded data or a URL to parse from unless you are creating a new one from scratch.

메소드 상세

Parse() 공개 메소드

Parses the query string into the internal dictionary and optionally also returns this dictionary
public Parse ( string query ) : NameValueCollection
query string /// Query string key value pairs or a full URL. If URL is /// passed the URL is re-written in Write operation ///
리턴 System.Collections.Specialized.NameValueCollection

SetValues() 공개 메소드

Assigns multiple values to the same key
public SetValues ( string key, IEnumerable values ) : void
key string
values IEnumerable
리턴 void

ToString() 공개 메소드

Writes out the urlencoded data/query string or full URL based on the internally set values.
public ToString ( ) : string
리턴 string

UrlEncodingParser() 공개 메소드

Always pass in a UrlEncoded data or a URL to parse from unless you are creating a new one from scratch.
public UrlEncodingParser ( string queryStringOrUrl = null ) : System
queryStringOrUrl string /// Pass a query string or raw Form data, or a full URL. /// If a URL is parsed the part prior to the ? is stripped /// but saved. Then when you write the original URL is /// re-written with the new query string. ///
리턴 System