Visual Basic (Declaration) | |
---|---|
Public Function SetRunAsUser( _ ByVal userName As String, _ ByVal password As String, _ ByVal securityLabel As String, _ ByVal objectGuid As Guid, _ ByVal procID As Integer _ ) As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As WorkflowManagementServer Dim userName As String Dim password As String Dim securityLabel As String Dim objectGuid As Guid Dim procID As Integer Dim value As Boolean value = instance.SetRunAsUser(userName, password, securityLabel, objectGuid, procID) |
C# | |
---|---|
public bool SetRunAsUser( string userName, string password, string securityLabel, Guid objectGuid, int procID ) |
C++/CLI | |
---|---|
public: bool SetRunAsUser( String^ userName, String^ password, String^ securityLabel, Guid objectGuid, int procID ) |
Parameters
- userName
- password
- securityLabel
- objectGuid
- procID
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2