PeerCollaboration.SignIn(PeerScope) PeerCollaboration.SignIn(PeerScope) PeerCollaboration.SignIn(PeerScope) Method

Definition

Signs the peer into the collaboration infrastructure with the specified PeerScope.

public:
 static void SignIn(System::Net::PeerToPeer::Collaboration::PeerScope peerScope);
[System.Security.SecurityCritical]
public static void SignIn (System.Net.PeerToPeer.Collaboration.PeerScope peerScope);
static member SignIn : System.Net.PeerToPeer.Collaboration.PeerScope -> unit

Parameters

peerScope
PeerScope PeerScope PeerScope

The scope the peer is using to join the PeerCollaboration activity.

Exceptions

The peerScope parameter contains an invalid enumeration value.

Examples

The following code example illustrates how to sign the users into the Collaboration infrastructure.

//This function signs the users into the Collaboration Infrastructure.
public static bool PeerCollabSignin()
{
    bool result = false;
    try
    {
        PeerCollaboration.SignIn(PeerScope.All);
        result = true;
    }
    catch(Exception ex)
    {
        Console.WriteLine("Error signing in: {0}", ex.Message);
    }
    return result;
}

Remarks

Display names are not necessarily unique. Users should verify the identity of the person using the display name by email, phone, or in person before accepting a collaboration invitation.

This function signs the users into the Collaboration Infrastructure.

Access to this method requires a PermissionState of Unrestricted. This state is created when the Peer collaboration session begins.

Applies to

See also