1
Previous question從我剛纔的問題上之後,如何指定@ microsoft.graph.conflictBehavior直接進入OneDrive SDK調用
是否有一個地方,可以我們直接添加@microsoft.graph.conflictBehavior
註釋到SDK調用,而不是指定它的方式在foldertoCreate
對象?
var foldertoCreate = new DriveItem {
Name = $"TestFolder",
Folder = new Folder(),
AdditionalData = new Dictionary<string, object> {
{ "@microsoft.graph.conflictBehavior", "rename" }
},
};
// somewhere in the below call
var newFolder = await _graphClient.Drive
.Items["MyParent_Item_Id"]
.Children
.Request()
.AddAsync (foldertoCreate);