PeerContact.GetApplications 方法

定義

擷取由遠端對等電腦登錄至本機快取的 PeerApplication 物件。

多載

GetApplications()

擷取由遠端對等電腦登錄至本機快取的 PeerApplication 物件。

GetApplications(Guid)

以指定的 PeerApplication,取得本機快取中 Guid 物件的集合。

GetApplications(PeerEndPoint)

取得與指定的 PeerApplicationCollection 相關聯的 PeerEndPoint

GetApplications(PeerEndPoint, Guid)

取得與指定的 PeerApplicationCollection 相關聯的 PeerEndPoint

備註

這項功能只會在 類別上 PeerContact 公開。 基於安全性考慮,這項功能不會在其他類型的對等上公開。

GetApplications()

擷取由遠端對等電腦登錄至本機快取的 PeerApplication 物件。

public:
 System::Net::PeerToPeer::Collaboration::PeerApplicationCollection ^ GetApplications();
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerApplicationCollection GetApplications ();
[<System.Security.SecurityCritical>]
member this.GetApplications : unit -> System.Net.PeerToPeer.Collaboration.PeerApplicationCollection
Public Function GetApplications () As PeerApplicationCollection

傳回

PeerApplicationCollection

本機快取中的 PeerApplicationCollection。 如果找不到 PeerEndPoint 的相關聯應用程式,就會傳回大小為零 (0) 的集合。

屬性

例外狀況

無法完成 GetApplications() 作業。

備註

如果呼叫對等未訂閱 PeerContact 與指定 PeerEndPoint 之 相關聯的 , RefreshData 則必須在呼叫這個方法之前呼叫方法。

雖然呼叫端不需要登入這個方法的共同作業基礎結構才能順利完成,但先前登入呼叫端時,必須完成呼叫或其中一個 Subscribe 方法的成功呼叫 RefreshData

這項功能只會在 類別上 PeerContact 公開。 基於安全性考慮,這項功能不會在其他類型的對等上公開。

給呼叫者的注意事項

呼叫這個方法需要 PermissionStateUnrestricted 。 當對等共同作業會話開始時,就會建立此狀態。

適用於

GetApplications(Guid)

以指定的 PeerApplication,取得本機快取中 Guid 物件的集合。

public:
 System::Net::PeerToPeer::Collaboration::PeerApplicationCollection ^ GetApplications(Guid applicationId);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerApplicationCollection GetApplications (Guid applicationId);
[<System.Security.SecurityCritical>]
member this.GetApplications : Guid -> System.Net.PeerToPeer.Collaboration.PeerApplicationCollection
Public Function GetApplications (applicationId As Guid) As PeerApplicationCollection

參數

applicationId
Guid

要擷取之對等應用程式的 Guid

傳回

PeerApplicationCollection

本機快取中的 PeerApplicationCollection。 如果使用指定的 applicationId 找不到應用程式,就會傳回大小為零 (0) 的集合。

屬性

例外狀況

無法完成 GetApplications() 作業。

備註

如果呼叫對等未訂閱 PeerContact 與指定 PeerEndPoint 之 相關聯的 , RefreshData 則必須在呼叫這個方法之前呼叫方法。

雖然呼叫端不需要登入這個方法的共同作業基礎結構才能順利完成,但先前登入呼叫端時,必須完成呼叫或其中一個 Subscribe 方法的成功呼叫 RefreshData

這項功能只會在 類別上 PeerContact 公開。 基於安全性考慮,這項功能不會在其他類型的對等上公開。

給呼叫者的注意事項

呼叫這個方法需要 PermissionStateUnrestricted 。 當對等共同作業會話開始時,就會建立此狀態。

另請參閱

適用於

GetApplications(PeerEndPoint)

取得與指定的 PeerApplicationCollection 相關聯的 PeerEndPoint

public:
 System::Net::PeerToPeer::Collaboration::PeerApplicationCollection ^ GetApplications(System::Net::PeerToPeer::Collaboration::PeerEndPoint ^ peerEndPoint);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerApplicationCollection GetApplications (System.Net.PeerToPeer.Collaboration.PeerEndPoint peerEndPoint);
[<System.Security.SecurityCritical>]
member this.GetApplications : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerApplicationCollection
Public Function GetApplications (peerEndPoint As PeerEndPoint) As PeerApplicationCollection

參數

peerEndPoint
PeerEndPoint

內含與 PeerContact 相關聯的端點資訊。

傳回

PeerApplicationCollection

與指定 PeerApplicationCollection 相關聯的 PeerEndPoint。 如果應用程式未與指定的 PeerEndPoint 相關聯,就會傳回大小為零 (0) 的集合。

屬性

例外狀況

PeerEndPoint 不可以是 null

無法完成 GetApplications() 作業。

備註

如果呼叫對等未訂閱 PeerContact 與指定 PeerEndPoint 之 相關聯的 , RefreshData 則必須在呼叫這個方法之前呼叫方法。

雖然呼叫端不需要登入這個方法的共同作業基礎結構才能順利完成,但先前登入呼叫端時,必須完成呼叫或其中一個 Subscribe 方法的成功呼叫 RefreshData

這項功能只會在 類別上 PeerContact 公開。 基於安全性考慮,這項功能不會在其他類型的對等上公開。

給呼叫者的注意事項

呼叫這個方法需要 PermissionStateUnrestricted 。 當對等共同作業會話開始時,就會建立此狀態。

另請參閱

適用於

GetApplications(PeerEndPoint, Guid)

取得與指定的 PeerApplicationCollection 相關聯的 PeerEndPoint

public:
 System::Net::PeerToPeer::Collaboration::PeerApplicationCollection ^ GetApplications(System::Net::PeerToPeer::Collaboration::PeerEndPoint ^ peerEndPoint, Guid applicationId);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerApplicationCollection GetApplications (System.Net.PeerToPeer.Collaboration.PeerEndPoint peerEndPoint, Guid applicationId);
[<System.Security.SecurityCritical>]
member this.GetApplications : System.Net.PeerToPeer.Collaboration.PeerEndPoint * Guid -> System.Net.PeerToPeer.Collaboration.PeerApplicationCollection
Public Function GetApplications (peerEndPoint As PeerEndPoint, applicationId As Guid) As PeerApplicationCollection

參數

peerEndPoint
PeerEndPoint

PeerApplicationCollection 關聯的端點。

applicationId
Guid

內含與 PeerContact 相關聯的應用程式資訊。

傳回

PeerApplicationCollection

PeerApplication 相關聯之 PeerEndPoint 物件的集合。

如果找不到 PeerEndPoint 的 ID 識別之應用程式,或者端點的 ID 為 null 或無效,就會傳回大小為零 (0) 的集合。

屬性

例外狀況

PeerEndPoint 不可以是 null

無法完成 GetApplications() 作業。

備註

如果呼叫對等未訂閱 PeerContact 與指定 PeerEndPoint 之 相關聯的 , RefreshData 則必須在呼叫這個方法之前呼叫方法。

雖然呼叫端不需要登入這個方法的共同作業基礎結構才能順利完成,但先前登入呼叫端時,必須完成呼叫或其中一個 Subscribe 方法的成功呼叫 RefreshData

這項功能只會在 類別上 PeerContact 公開。 基於安全性考慮,這項功能不會在其他類型的對等上公開。

給呼叫者的注意事項

呼叫這個方法需要 PermissionStateUnrestricted 。 當對等共同作業會話開始時,就會建立此狀態。

另請參閱

適用於