本文整理汇总了C#中DotNetNuke类的典型用法代码示例。如果您正苦于以下问题:C# DotNetNuke类的具体用法?C# DotNetNuke怎么用?C# DotNetNuke使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DotNetNuke类属于命名空间,在下文中一共展示了DotNetNuke类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetProperty
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower())
{
case "sessionresourceid": // Int
return SessionResourceId.ToString(strFormat, formatProvider);
case "sessionid": // Int
return SessionId.ToString(strFormat, formatProvider);
case "resourcelink": // NVarChar
return PropertyAccess.FormatString(ResourceLink, strFormat);
case "resourcedescription": // NVarChar
if (ResourceDescription == null)
{
return "";
};
return PropertyAccess.FormatString(ResourceDescription, strFormat);
case "resourcetype": // Int
return ResourceType.ToString(strFormat, formatProvider);
case "visibility": // Int
return Visibility.ToString(strFormat, formatProvider);
default:
propertyNotFound = true;
break;
}
return Null.NullString;
}
示例2: GetProperty
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower())
{
case "conferenceid": // Int
return ConferenceId.ToString(strFormat, formatProvider);
case "userid": // Int
return UserId.ToString(strFormat, formatProvider);
case "status": // Int
return Status.ToString(strFormat, formatProvider);
case "receivenotifications": // Bit
return ReceiveNotifications.ToString();
case "company": // NVarChar
if (Company == null)
{
return "";
};
return PropertyAccess.FormatString(Company, strFormat);
case "attcode": // NVarChar
if (AttCode == null)
{
return "";
};
return PropertyAccess.FormatString(AttCode, strFormat);
default:
propertyNotFound = true;
break;
}
return Null.NullString;
}
示例3: GetProperty
public override string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower()) {
case "title": // NVarChar
if (Title == null)
{
return "";
};
return PropertyAccess.FormatString(Title, strFormat);
case "sessionattendeename": // NVarChar
return PropertyAccess.FormatString(SessionAttendeeName, strFormat);
case "createdbyuser": // NVarChar
if (CreatedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(CreatedByUser, strFormat);
case "lastmodifiedbyuser": // NVarChar
if (LastModifiedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(LastModifiedByUser, strFormat);
default:
return base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound);
}
}
示例4: GetProperty
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower())
{
case "commentid": // Int
return CommentId.ToString(strFormat, formatProvider);
case "userid": // Int
return UserId.ToString(strFormat, formatProvider);
case "conferenceid": // Int
return ConferenceId.ToString(strFormat, formatProvider);
case "sessionid": // Int
return SessionId.ToString(strFormat, formatProvider);
case "datime": // DateTime
return Datime.ToString(strFormat, formatProvider);
case "remarks": // NVarCharMax
return PropertyAccess.FormatString(Remarks, strFormat);
case "visibility": // Int
return Visibility.ToString(strFormat, formatProvider);
default:
propertyNotFound = true;
break;
}
return Null.NullString;
}
示例5: GetProperty
public override string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower()) {
case "nrsessions": // Int
if (NrSessions == null)
{
return "";
};
return ((int)NrSessions).ToString(strFormat, formatProvider);
case "nrvotes": // Int
if (NrVotes == null)
{
return "";
};
return ((int)NrVotes).ToString(strFormat, formatProvider);
case "createdbyuser": // NVarChar
if (CreatedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(CreatedByUser, strFormat);
case "lastmodifiedbyuser": // NVarChar
if (LastModifiedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(LastModifiedByUser, strFormat);
default:
return base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound);
}
}
示例6: GetProperty
public override string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower()) {
case "code": // NVarChar
return PropertyAccess.FormatString(Code, strFormat);
case "name": // NVarChar
return PropertyAccess.FormatString(Name, strFormat);
case "description": // NVarChar
if (Description == null)
{
return "";
};
return PropertyAccess.FormatString(Description, strFormat);
case "points": // Int
return Points.ToString(strFormat, formatProvider);
case "coords": // VarChar
return PropertyAccess.FormatString(Coords, strFormat);
case "latitude": // Float
return Latitude.ToString(strFormat, formatProvider);
case "longitude": // Float
return Longitude.ToString(strFormat, formatProvider);
case "altitude": // Int
return Altitude.ToString(strFormat, formatProvider);
case "region": // Int
return Region.ToString(strFormat, formatProvider);
default:
return base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound);
}
}
示例7: GetProperty
public override string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower()) {
case "displayname": // NVarChar
return PropertyAccess.FormatString(DisplayName, strFormat);
case "email": // NVarChar
if (Email == null)
{
return "";
};
return PropertyAccess.FormatString(Email, strFormat);
case "firstname": // NVarChar
return PropertyAccess.FormatString(FirstName, strFormat);
case "lastname": // NVarChar
return PropertyAccess.FormatString(LastName, strFormat);
case "conferencename": // NVarChar
return PropertyAccess.FormatString(ConferenceName, strFormat);
case "sessiontitle": // NVarChar
if (SessionTitle == null)
{
return "";
};
return PropertyAccess.FormatString(SessionTitle, strFormat);
default:
return base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound);
}
}
示例8: GetProperty
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower())
{
case "conferenceid": // Int
return ConferenceId.ToString(strFormat, formatProvider);
case "portalid": // Int
return PortalId.ToString(strFormat, formatProvider);
case "name": // NVarChar
return PropertyAccess.FormatString(Name, strFormat);
case "description": // NVarCharMax
if (Description == null)
{
return "";
};
return PropertyAccess.FormatString(Description, strFormat);
case "startdate": // DateTime
if (StartDate == null)
{
return "";
};
return ((DateTime)StartDate).ToString(strFormat, formatProvider);
case "enddate": // DateTime
if (EndDate == null)
{
return "";
};
return ((DateTime)EndDate).ToString(strFormat, formatProvider);
case "maxcapacity": // Int
if (MaxCapacity == null)
{
return "";
};
return ((int)MaxCapacity).ToString(strFormat, formatProvider);
case "sessionvoting": // Bit
return SessionVoting.ToString();
case "attendeerole": // Int
return AttendeeRole.ToString(strFormat, formatProvider);
case "speakerrole": // Int
return SpeakerRole.ToString(strFormat, formatProvider);
case "location": // NVarChar
if (Location == null)
{
return "";
};
return PropertyAccess.FormatString(Location, strFormat);
case "url": // NVarChar
if (Url == null)
{
return "";
};
return PropertyAccess.FormatString(Url, strFormat);
default:
propertyNotFound = true;
break;
}
return Null.NullString;
}
示例9: SecurityGrid
public SecurityGrid(DotNetNuke.Entities.Portals.PortalSettings ps, bool isReadOnly, string imgPath, PermissionInfo sec, int permId)
{
PortalSettings = ps;
ReadOnly = isReadOnly;
ImagePath = imgPath;
Security = sec;
PermissionsId = permId;
}
示例10: GetProperty
public override string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower()) {
case "company": // NVarChar
if (Company == null)
{
return "";
};
return PropertyAccess.FormatString(Company, strFormat);
case "description": // NVarCharMax
if (Description == null)
{
return "";
};
return PropertyAccess.FormatString(Description, strFormat);
case "descriptionshort": // NVarCharMax
if (DescriptionShort == null)
{
return "";
};
return PropertyAccess.FormatString(DescriptionShort, strFormat);
case "url": // NVarChar
if (Url == null)
{
return "";
};
return PropertyAccess.FormatString(Url, strFormat);
case "displayname": // NVarChar
return PropertyAccess.FormatString(DisplayName, strFormat);
case "firstname": // NVarChar
return PropertyAccess.FormatString(FirstName, strFormat);
case "lastname": // NVarChar
return PropertyAccess.FormatString(LastName, strFormat);
case "email": // NVarChar
if (Email == null)
{
return "";
};
return PropertyAccess.FormatString(Email, strFormat);
case "username": // NVarChar
return PropertyAccess.FormatString(Username, strFormat);
case "createdbyuser": // NVarChar
if (CreatedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(CreatedByUser, strFormat);
case "lastmodifiedbyuser": // NVarChar
if (LastModifiedByUser == null)
{
return "";
};
return PropertyAccess.FormatString(LastModifiedByUser, strFormat);
default:
return base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound);
}
}
示例11: Emailer
/// <summary>
///
/// </summary>
/// <param name="objScheduleHistoryItem"></param>
/// <param name="controller"></param>
public Emailer(DotNetNuke.Services.Scheduling.ScheduleHistoryItem objScheduleHistoryItem, IDnnqaController controller)
{
if (controller == null)
{
throw new ArgumentException(@"Controller is nothing.", "controller");
}
Controller = controller;
ScheduleHistoryItem = objScheduleHistoryItem;
}
示例12: UrlRewiterSettings
public UrlRewiterSettings(DotNetNuke.Framework.Providers.Provider objProvider)
{
if (objProvider.Attributes["fileExtension"] != null)
{
_fileExtension = objProvider.Attributes["fileExtension"];
}
else
{
_fileExtension = ".aspx";
}
}
示例13: GetSearchItems
/// -----------------------------------------------------------------------------
/// <summary>
/// GetSearchItems implements the ISearchable Interface
/// </summary>
/// <param name="ModInfo">The ModuleInfo for the module to be Indexed</param>
/// -----------------------------------------------------------------------------
public DotNetNuke.Services.Search.SearchItemInfoCollection GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo ModInfo)
{
var items = new SearchItemInfoCollection();
// Add the devices to the search index.
foreach (var item in Factory.ActiveProvider.Devices)
{
string guid = String.Format("DeviceID={0}",
item.DeviceId);
var device = new Device(item);
items.Add(new SearchItemInfo(
device.HardwareCaption,
String.Format("{0} running {1} with browser {2}",
device.HardwareCaption,
device.SoftwareCaption,
device.BrowserCaption),
ModInfo.CreatedByUserID,
Factory.ActiveProvider.PublishedDate,
ModInfo.ModuleID,
device.DeviceID,
device.Content,
guid));
}
// Add the properties to the search.
foreach (var property in Factory.ActiveProvider.Properties)
{
items.Add(new SearchItemInfo(
property.Name,
property.Description,
ModInfo.CreatedByUserID,
Factory.ActiveProvider.PublishedDate,
ModInfo.ModuleID,
property.Name,
property.Description));
foreach (var value in property.Values)
{
string name = String.Format("{0} - {1}", property.Name, value.Name);
items.Add(new SearchItemInfo(
name,
value.Description,
ModInfo.CreatedByUserID,
Factory.ActiveProvider.PublishedDate,
ModInfo.ModuleID,
name,
value.Description));
}
}
return items;
}
示例14: GetProperty
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
{
switch (strPropertyName.ToLower())
{
case "sessionid": // Int
return SessionId.ToString(strFormat, formatProvider);
case "userid": // Int
return UserId.ToString(strFormat, formatProvider);
default:
propertyNotFound = true;
break;
}
return Null.NullString;
}
示例15: GetSearchItems
/// -----------------------------------------------------------------------------
/// <summary>
/// GetSearchItems implements the ISearchable Interface
/// </summary>
/// <param name="ModInfo">The ModuleInfo for the module to be Indexed</param>
/// -----------------------------------------------------------------------------
public DotNetNuke.Services.Search.SearchItemInfoCollection GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo ModInfo)
{
//SearchItemInfoCollection SearchItemCollection = new SearchItemInfoCollection();
//List<Ourspace_SubmittedProposalsInfo> colOurspace_SubmittedProposalss = GetOurspace_SubmittedProposalss(ModInfo.ModuleID);
//foreach (Ourspace_SubmittedProposalsInfo objOurspace_SubmittedProposals in colOurspace_SubmittedProposalss)
//{
// SearchItemInfo SearchItem = new SearchItemInfo(ModInfo.ModuleTitle, objOurspace_SubmittedProposals.Content, objOurspace_SubmittedProposals.CreatedByUser, objOurspace_SubmittedProposals.CreatedDate, ModInfo.ModuleID, objOurspace_SubmittedProposals.ItemId.ToString(), objOurspace_SubmittedProposals.Content, "ItemId=" + objOurspace_SubmittedProposals.ItemId.ToString());
// SearchItemCollection.Add(SearchItem);
//}
//return SearchItemCollection;
throw new System.NotImplementedException("The method or operation is not implemented.");
}