PeerCollaboration.SignIn Method (PeerScope)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public static void SignIn(
	PeerScope peerScope


Type: System.Net.PeerToPeer.Collaboration.PeerScope

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

Exception Condition

peerScope is set to None.


The peerScope parameter contains an invalid enumeration value.


The SignIn operation could not be completed.

Display names are not necessarily unique. Users should verify the identity of the person using the display name by e-mail, 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.

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;
        result = true;
    catch(Exception ex)
        Console.WriteLine("Error signing in: {0}", ex.Message);
    return result;

.NET Framework
Available since 3.5
Return to top