验证。 Application 属性 (Visio)Validation.Application property (Visio)
返回与某个对象相关联的 Microsoft Visio 实例。Returns the instance of Microsoft Visio that is associated with an object. 此为只读属性。Read-only.
语法Syntax
表达式。应用程序expression.Application
_表达式_一个代表**验证** 对象的变量。expression A variable that represents a Validation object.
返回值Return value
示例Example
下面的 Visual Basic for Applications (VBA) 宏获取与活动文档的有效性对象相关联的Application对象, 并在 "即时" 窗口中打印其进程 ID 号。The following Visual Basic for Applications (VBA) macro gets the Application object associated with the Validation object for the active document and prints its process ID number in the Immediate window.
Public Sub Application_Example()
Dim vsoApplication As Visio.Application
Dim vsoValidation As Validation
Set vsoValidation = ActiveDocument.Validation
'Get the instance of Visio associated with the Validation object.
Set vsoApplication = vsoValidation.Application
Debug.Print "The process ID of the Application object associated with the active document is: " & vsoApplication.ProcessID
End Sub
支持和反馈Support and feedback
有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.