ComputerInfo.IsSameMachine Method
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Function IsSameMachine ( _
hostname1 As String, _
hostname2 As String _
) As Boolean
public static bool IsSameMachine(
string hostname1,
string hostname2
)
public:
static bool IsSameMachine(
String^ hostname1,
String^ hostname2
)
static member IsSameMachine :
hostname1:string *
hostname2:string -> bool
public static function IsSameMachine(
hostname1 : String,
hostname2 : String
) : boolean
Parameters
- hostname1
Type: System.String
- hostname2
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.