public void GetProtectionType()
{
//ExStart
//ExFor:Document.ProtectionType
//ExId:GetProtectionType
//ExSummary:Shows how to get protection type currently set in the document.
Document doc = new Document(MyDir + "Document.doc");
ProtectionType protectionType = doc.ProtectionType;
//ExEnd
}