public GetProperty ( string strPropertyName, string strFormat, |
||
strPropertyName | string | |
strFormat | string | |
formatProvider | ||
AccessingUser | DotNetNuke.Entities.Users.UserInfo | |
AccessLevel | Scope | |
PropertyNotFound | bool | |
Результат | string |
public string GetProperty(string strPropertyName, string strFormat, CultureInfo formatProvider,
UserInfo AccessingUser, Scope AccessLevel, ref bool PropertyNotFound)
{
if (NameValueCollection == null)
{
return string.Empty;
}
var value = NameValueCollection[strPropertyName];
if (value != null)
{
var security = new PortalSecurity();
value = security.InputFilter(value, PortalSecurity.FilterFlag.NoScripting);
return security.InputFilter(PropertyAccess.FormatString(value, strFormat),
PortalSecurity.FilterFlag.NoScripting);
}
else
{
PropertyNotFound = true;
return string.Empty;
}
}
}