C# 클래스 Sitecore.SharedSource.Commons.Utilities.WebControlUtil

Provides Utilities for dealing with Sitecore Webcontrols and Sublayouts
파일 보기 프로젝트 열기: Velir/Sitecore-Commons

공개 메소드들

메소드 설명
GetParameters ( WebControl control ) : NameValueCollection

Provides a NameValueCollection of Parameters listed in the Webcontrol and Sublayout Data Template. Takes the Parameter string Field and Separates it out as such. Title=Some Title Subtitle=Some SubTitle Something=Else Takes this, splits it out for each line, then adds to the collection. The above creates: {'Title'=>'Some Title','Subtitle'=>'Some SubTitle','Something'=>'Else'} This overload assumes that the Parameters are separated by line and the key/value pairs are delimited by an equal sign (=).

GetParameters ( WebControl control, char delimiters, char keyPairDelimiter ) : NameValueCollection

Provides a NameValueCollection of Parameters listed in the Webcontrol and Sublayout Data Template. Takes the Parameter string Field and Separates it out as such. Title=Some Title Subtitle=Some SubTitle Something=Else Takes this, splits it out for each line, then adds to the collection. The above creates: {'Title'=>'Some Title','Subtitle'=>'Some SubTitle','Something'=>'Else'}

메소드 상세

GetParameters() 공개 정적인 메소드

Provides a NameValueCollection of Parameters listed in the Webcontrol and Sublayout Data Template. Takes the Parameter string Field and Separates it out as such. Title=Some Title Subtitle=Some SubTitle Something=Else Takes this, splits it out for each line, then adds to the collection. The above creates: {'Title'=>'Some Title','Subtitle'=>'Some SubTitle','Something'=>'Else'} This overload assumes that the Parameters are separated by line and the key/value pairs are delimited by an equal sign (=).
public static GetParameters ( WebControl control ) : NameValueCollection
control WebControl The WebControl object, usually 'this' will work.
리턴 System.Collections.Specialized.NameValueCollection

GetParameters() 공개 정적인 메소드

Provides a NameValueCollection of Parameters listed in the Webcontrol and Sublayout Data Template. Takes the Parameter string Field and Separates it out as such. Title=Some Title Subtitle=Some SubTitle Something=Else Takes this, splits it out for each line, then adds to the collection. The above creates: {'Title'=>'Some Title','Subtitle'=>'Some SubTitle','Something'=>'Else'}
public static GetParameters ( WebControl control, char delimiters, char keyPairDelimiter ) : NameValueCollection
control WebControl The WebControl object, usually 'this' will work.
delimiters char char[] of parameter delimiters
keyPairDelimiter char delimiter of key/value pair separator
리턴 System.Collections.Specialized.NameValueCollection