private static void GetProtectionType(string inputFileName)
{
// ExStart:GetProtectionType
Document doc = new Document(inputFileName);
ProtectionType protectionType = doc.ProtectionType;
// ExEnd:GetProtectionType
Console.WriteLine("\nDocument protection type is " + protectionType.ToString());
}
}