SocketExtensions.GetCurrentNetworkInterface Yöntem

Ad alanı:  Microsoft.Phone.Net.NetworkInformation
Derleme:  Microsoft.Phone (Microsoft.Phone.dll içinde)

Sözdizimi

'Bildirim
<ExtensionAttribute> _
Public Shared Function GetCurrentNetworkInterface ( _
    socket As Socket _
) As NetworkInterfaceInfo
public static NetworkInterfaceInfo GetCurrentNetworkInterface(
    this Socket socket
)
[ExtensionAttribute]
public:
static NetworkInterfaceInfo^ GetCurrentNetworkInterface(
    Socket^ socket
)
static member GetCurrentNetworkInterface : 
        socket:Socket -> NetworkInterfaceInfo 

Parametreler

Dönüş Değeri

Tür: Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceInfo

Kullanım Notu

Visual Basic ve C# programlarında, bu yöntemi Socket türündeki herhangi bir nesne üzerinde örnek yöntemi olarak çağırabilirsiniz. Bu yöntemi çağırmak için örnek yöntemi sözdizimini kullandığınızda, ilk parametreyi yok sayın. Daha fazla bilgi için bkz. Uzantı Yöntemleri (Visual Basic) veya Genişletme Yöntemleri (C# Programlama Kılavuzu).

Sürüm Bilgileri

Windows Phone uygulamaları için .NET

Destekleyen: Windows Phone 8, Silverlight 8.1

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

SocketExtensions Sınıf

Microsoft.Phone.Net.NetworkInformation Ad Alanı