Class RevisionSummary
Class RevisionSummary
이름 공간 : Aspose.Note 모임: Aspose.Note.dll (25.4.0)
노드의 개정에 대한 요약을 나타냅니다.
public class RevisionSummary
{
private int _id;
private string _author;
private string _text;
public int Id
{
get { return _id; }
set { _id = value; }
}
public string Author
{
get { return _author; }
set { _author = value; }
}
public string Text
{
get { return _text; }
set { _text = value; }
}
}
Inheritance
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
페이지의 메타 정보를 편집하는 방법을 보여줍니다.
string dataDir = RunExamples.GetDataDir_Pages();
Document document = new Document(dataDir + "Aspose.one");
Page page = document.FirstChild;
var pageRevisionInfo = page.PageContentRevisionSummary;
Console.WriteLine(string.Format("Author:\t{0}\nModified:\t{1}",
pageRevisionInfo.AuthorMostRecent,
pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));
pageRevisionInfo.AuthorMostRecent = "New Author";
pageRevisionInfo.LastModifiedTime = DateTime.Now;
document.Save(dataDir + "WorkingWithPageRevisions_out.one");
페이지가 갈등 페이지인지 확인하는 방법을 보여줍니다(즉, OneNote가 자동으로 결합 할 수없는 변경 사항이 있습니다).
string dataDir = RunExamples.GetDataDir_Pages();
Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });
var history = doc.GetPageHistory(doc.FirstChild);
for (int i = 0; i < history.Count; i++)
{
var historyPage = history[i];
Console.Write(" {0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
i,
historyPage.PageContentRevisionSummary.AuthorMostRecent,
historyPage.PageContentRevisionSummary.LastModifiedTime);
Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);
if (historyPage.IsConflictPage)
historyPage.IsConflictPage = false;
}
doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);
Constructors
검토에 관한 정보( )
public RevisionSummary()
{
}
Properties
AuthorMostRecent
가장 최근의 작가를 얻거나 설정합니다.
public string AuthorMostRecent
{
get;
set;
}
부동산 가치
Examples
페이지의 메타 정보를 편집하는 방법을 보여줍니다.
string dataDir = RunExamples.GetDataDir_Pages();
Document document = new Document(dataDir + "Aspose.one");
Page page = document.FirstChild;
var pageRevisionInfo = page.PageContentRevisionSummary;
Console.WriteLine(string.Format("Author: {0}\nModified: {1}",
pageRevisionInfo.AuthorMostRecent,
pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));
pageRevisionInfo.AuthorMostRecent = "New Author";
pageRevisionInfo.LastModifiedTime = DateTime.Now;
document.Save(dataDir + "WorkingWithPageRevisions_out.one");
페이지가 갈등 페이지인지 확인하는 방법을 보여줍니다(즉, OneNote가 자동으로 결합 할 수없는 변경 사항이 있습니다).
string dataDir = RunExamples.GetDataDir_Pages();
Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });
var history = doc.GetPageHistory(doc.FirstChild);
for (int i = 0; i < history.Count; i++)
{
var historyPage = history[i];
Console.Write("{0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
i,
historyPage.PageContentRevisionSummary.AuthorMostRecent,
historyPage.PageContentRevisionSummary.LastModifiedTime);
Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);
if (historyPage.IsConflictPage)
historyPage.IsConflictPage = false;
}
doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);
LastModifiedTime
마지막으로 변경된 시간을 얻거나 설정합니다.
public DateTime LastModifiedTime
{
get;
set;
}
부동산 가치
Examples
페이지의 메타 정보를 편집하는 방법을 보여줍니다.
string dataDir = RunExamples.GetDataDir_Pages();
Document document = new Document(dataDir + "Aspose.one");
Page page = document.FirstChild;
var pageRevisionInfo = page.PageContentRevisionSummary;
Console.WriteLine(string.Format("Author:\t{0}\nModified:\t{1}",
pageRevisionInfo.AuthorMostRecent,
pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));
pageRevisionInfo.AuthorMostRecent = "New Author";
pageRevisionInfo.LastModifiedTime = DateTime.Now;
document.Save(dataDir + "WorkingWithPageRevisions_out.one");
페이지가 갈등 페이지인지 확인하는 방법을 보여줍니다(즉, OneNote가 자동으로 결합 할 수없는 변경 사항이 있습니다).
string dataDir = RunExamples.GetDataDir_Pages();
Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });
var history = doc.GetPageHistory(doc.FirstChild);
for (int i = 0; i < history.Count; i++)
{
var historyPage = history[i];
Console.Write("{0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
i,
historyPage.PageContentRevisionSummary.AuthorMostRecent,
historyPage.PageContentRevisionSummary.LastModifiedTime);
Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);
if (historyPage.IsConflictPage)
historyPage.IsConflictPage = false;
}
doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);