Exemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:PageInfo" /> class.
 /// </summary>
 /// <param name="fullName">The Full Name of the Page.</param>
 /// <param name="provider">The Pages Storage Provider that manages this Page.</param>
 /// <param name="creationDateTime">The Page creation Date/Time.</param>
 public PageInfo(string fullName, IPagesStorageProviderV30 provider, DateTime creationDateTime)
 {
     NameTools.ExpandFullName(fullName, out _nspace, out _name);
     FullName         = fullName;
     Provider         = provider;
     CreationDateTime = creationDateTime;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <b>NavigationPath</b> class.
 /// </summary>
 /// <param name="fullName">The Full Name of the Navigation Path.</param>
 /// <param name="provider">The Provider</param>
 public NavigationPath(string fullName, IPagesStorageProviderV30 provider)
 {
     NameTools.ExpandFullName(fullName, out nspace, out name);
     this.provider = provider;
     pages         = new string[0];
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CategoryInfo" /> class.
 /// </summary>
 /// <param name="fullName">The Full Name of the Category.</param>
 /// <param name="provider">The Storage that manages the category.</param>
 public CategoryInfo(string fullName, IPagesStorageProviderV60 provider)
 {
     NameTools.ExpandFullName(fullName, out nspace, out name);
     this.provider = provider;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Rename the page with the provided <paramref name="newFullName"/>.
 /// </summary>
 /// <param name="newFullName">New full name for the page.</param>
 public void Rename(string newFullName)
 {
     FullName = newFullName;
     NameTools.ExpandFullName(FullName, out _nspace, out _name);
 }