简体   繁体   中英

(Sensenet) How to Create Folder with Name and Display Name are different from Dotnet Client(sn-client-dotnet)?

I can create folder by using this code:

var myFolder = Content.CreateNew("/Root/Sites/Default_Site", "Folder", "MyFolder");
await myFolder.SaveAsync();

How to make the Folder's name and it's display name are different using dotnet client?

example:

Display Name = "MyFolder"

but

Folder Name = "0E8646EF-C8AC-4DB5-973E-9AC1F8A0172B"

content["DisplayName"] = "MyFolder";
content["Name"] = "0E8646EF-C8AC-4DB5-973E-9AC1F8A0172B";
await content.SaveAsync();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM