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