_XDocument2.IsSigned 属性

获取一个值,该值指示是否已经对表单进行过数字签名。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
ReadOnly Property IsSigned As Boolean
    Get
用法
Dim instance As _XDocument2
Dim value As Boolean

value = instance.IsSigned
bool IsSigned { get; }

属性值

类型:System.Boolean

实现

_XDocument.IsSigned

备注

如果 IsSigned 属性为 true,则该表单已数字签名。如果该属性为 false,则该表单尚未数字签名。

InfoPath 使用 XML 签名来对表单进行数字签名。

备注

如果表单已经过数字签名,则其基础 XML 文档将处于只读状态。

重要

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

示例

在以下示例中,XDocument 对象的 IsSigned 属性用于确定表单是否进行了数字签名:

if (thisXDocument.IsSigned)
{
 thisXDocument.UI.Alert("This form contains digital signatures.");
}

另请参阅

引用

_XDocument2 接口

_XDocument2 成员

IsSigned 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间