C# Class DotNetNuke.Modules.Xml.Components.Utils

Show file Open project: DNNCommunity/DNN.XML

Public Methods

Method Description
CheckWebPermission ( string url ) : bool

determines whether the current Security grants the need permissions to connect to the url

Helpful in Medium Trust environment.

CreateXmlReader ( string xmlsrc, int portalId ) : XmlReader
CreateXmlReader ( string xmlsrc, int portalId, bool prohibitDtd ) : XmlReader
DefaultIfNullOrEmpty ( this value, string @default = "" ) : string

Returns the value as string if the object isn't null or empty. Otherwise it is replaced by the default string

GetSha256HashCode ( Credential credential ) : string
GetSha256HashCode ( NetworkCredential credential ) : string
GetSha256HashCode ( string &input ) : string
IsOfSameTypeAs ( this a, object b ) : bool

Method Details

CheckWebPermission() public static method

determines whether the current Security grants the need permissions to connect to the url
Helpful in Medium Trust environment.
public static CheckWebPermission ( string url ) : bool
url string
return bool

CreateXmlReader() public static method

public static CreateXmlReader ( string xmlsrc, int portalId ) : XmlReader
xmlsrc string
portalId int
return XmlReader

CreateXmlReader() public static method

public static CreateXmlReader ( string xmlsrc, int portalId, bool prohibitDtd ) : XmlReader
xmlsrc string
portalId int
prohibitDtd bool
return XmlReader

DefaultIfNullOrEmpty() public static method

Returns the value as string if the object isn't null or empty. Otherwise it is replaced by the default string
public static DefaultIfNullOrEmpty ( this value, string @default = "" ) : string
value this
@default string
return string

GetSha256HashCode() public static method

public static GetSha256HashCode ( Credential credential ) : string
credential Credential
return string

GetSha256HashCode() public static method

public static GetSha256HashCode ( NetworkCredential credential ) : string
credential System.Net.NetworkCredential
return string

GetSha256HashCode() public static method

public static GetSha256HashCode ( string &input ) : string
input string
return string

IsOfSameTypeAs() public static method

public static IsOfSameTypeAs ( this a, object b ) : bool
a this
b object
return bool