IProcessAnalyst.WritePrivilegeLevel [Property][Get]
- Last UpdatedJul 18, 2023
- 1 minute read
Returns the privilege level necessary to save Process Analyst views to the Primary and Secondary paths.
Defined As
-
[VBA] Integer WritePrivilegeLevel
-
[Cicode] INT WritePrivilegeLevel
-
[C++] short WritePrivilegeLevel
Execution Result
If the property get succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument.
Remarks
The privilege cannot be set via automation. It needs to be set in the property pages at design time (for example, in Graphics Builder).
Calling Syntax
Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".
[VBA]
Sub Example()
Dim privilege As Integer
`Retrieve the privilege
privilege = myPage_AN35.WritePrivilegeLevel
End Sub
[Cicode]
FUNCTION Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
INTEGER privilege;
// Retrieve the privilege
privilege = _ObjectGetProperty(hProcessAnalyst, "WritePrivilegeLevel");
END