/// <summary>
 /// Gets the location formatted as a string.
 /// </summary>
 /// <returns>The string format of the location.</returns>
 public override string ToString()
 {
     if (string.IsNullOrEmpty(ExtraInformation))
     {
         return(String.Format(CultureInfo.CurrentCulture, "{0}_{1}_{2}_{3}_{4}",
                              SiteId.ToString(), WebId.ToString(), FileId.ToString(),
                              Convert.ToString(VersionId, CultureInfo.InvariantCulture),
                              Convert.ToString(Timestamp.Ticks, CultureInfo.InvariantCulture)));
     }
     else
     {
         return(String.Format(CultureInfo.CurrentCulture, "{0}_{1}_{2}_{3}_{4}_{5}",
                              SiteId.ToString(), WebId.ToString(), FileId.ToString(),
                              Convert.ToString(VersionId, CultureInfo.InvariantCulture),
                              Convert.ToString(Timestamp.Ticks, CultureInfo.InvariantCulture),
                              ExtraInformation));
     }
 }
예제 #2
0
 public override string ToString()
 {
     //return ListId.ToString() + ";" + FieldId.ToString() + ";" + _searchFields + ";" + MaxSearchResults +  ";" + EntityEditorRows + ";" + WebId.ToString();
     return(ListId.ToString() + ";" + WebId.ToString() + ";" + ItemId.ToString() + ";" + QueryBox.ToString());
 }
예제 #3
0
 public override string ToString()
 {
     return(ListId.ToString() + ";" + FieldId.ToString() + ";" + _searchFields + ";" + MaxSearchResults + ";" + EntityEditorRows + ";" + WebId.ToString());
 }