private static string FormatMessage(ConfigurationDocumentKey documentKey)
 {
     return(string.Format("The document {0}, Version={1}, User={2}, Instance={3} does not exist.",
                          documentKey.DocumentName,
                          documentKey.Version,
                          documentKey.User,
                          documentKey.InstanceKey));
 }
コード例 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="creationTime"></param>
 /// <param name="modifiedTime"></param>
 public ConfigurationDocumentHeader(ConfigurationDocumentKey key, DateTime creationTime, DateTime modifiedTime)
 {
     Key          = key;
     CreationTime = creationTime;
     ModifiedTime = modifiedTime;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public ConfigurationDocumentNotFoundException(ConfigurationDocumentKey documentKey)
     : base(FormatMessage(documentKey))
 {
 }