Any category class where instanceId needs to be generated as custom, should override this method. In publication if instanceId is custom, then this method will be invoked.

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Protected 
Overridable 
Function 
CreateInstanceId ( _
	
endpoint 
As 

RealTimeEndpoint _
) 
As 
Long
C#
protected 
virtual 
long 
CreateInstanceId(
	

RealTimeEndpoint 
endpoint
)
Visual C++
protected:
virtual 
long long 
CreateInstanceId(
	

RealTimeEndpoint^ 
endpoint
)
JavaScript
function 
createInstanceId(
endpoint);

Return Value

The instance ID that was created.

See Also