Condividi tramite


InteractiveSession.IsRemote Proprietà

Definizione

Indica se il processo di chiamata è in esecuzione in una sessione desktop remoto.

public:
 static property bool IsRemote { bool get(); };
static bool IsRemote();
public static bool IsRemote { get; }
var boolean = InteractiveSession.isRemote;
Public Shared ReadOnly Property IsRemote As Boolean

Valore della proprietà

Boolean

bool

Contiene True se il processo corrente è in esecuzione in una sessione remota o False in caso contrario.

Esempio

OutputTextBlock1.Text = String.Format("The current session is : {0}", 
    (InteractiveSession.IsRemote ? "Remote" : "Local"));
OutputTextBlock1->Text = "The current session is : " + 
    (Windows::System::RemoteDesktop::InteractiveSession::IsRemote ? "Remote" : "Local");
OutputTextBlock1.Text = String.Format("The current session is : {0}",
    (If(InteractiveSession.IsRemote, "Remote", "Local")))

Si applica a