An ninh Lớp
Thông tin
Đại diện cho plugin Documentize.Security.
public sealed class Security
Kế thừa
Thành viên Kế thừa
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Ví dụ
Ví dụ này chứng minh cách mã hóa tài liệu PDF.
// tạo Security
var plugin = new Security();
// tạo đối tượng EncryptionOptions để thiết lập hướng dẫn
var opt = new EncryptionOptions("123456", "qwerty");
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource(inputPath));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new FileDataSource(outputPath));
// thực hiện quá trình
plugin.Process(opt);
Ví dụ này chứng minh cách giải mã tài liệu PDF.
// tạo Security
var plugin = new Security();
// tạo đối tượng DecryptionOptions để thiết lập hướng dẫn
var opt = new DecryptionOptions("123456"));
// thêm đường dẫn tệp đầu vào
opt.AddInput(new FileDataSource(inputPath));
// thiết lập đường dẫn tệp đầu ra
opt.AddOutput(new FileDataSource(outputPath));
// thực hiện quá trình
plugin.Process(opt);
Constructor
Security()
public Security()
Phương thức
Process(IPluginOptions)
Bắt đầu quá trình Documentize.Security với các tham số được chỉ định.
public ResultContainer Process(IPluginOptions options)
Tham số
options
IPluginOptions: Một đối tượng tùy chọn chứa hướng dẫn cho Documentize.Security.
Trả về
ResultContainer : Một đối tượng ResultContainer chứa kết quả của hoạt động.
Ngoại lệ
Namespace: Documentize
Assembly: Documentize.dll