ComputerInfo.IsLocalMachine Method (String)
Determines if the given host name matches the current machine.
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Function IsLocalMachine ( _
hostname As String _
) As Boolean
public static bool IsLocalMachine(
string hostname
)
public:
static bool IsLocalMachine(
String^ hostname
)
static member IsLocalMachine :
hostname:string -> bool
public static function IsLocalMachine(
hostname : String
) : boolean
Parameters
- hostname
Type: System.String
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.