## NurbsSampleCollection.USamplingCount

### Description

Returns the number of USampling coordinate valid indices as a Long.

### C# Syntax

    // get accessor
    Int32 NurbsSampleCollection.get_USamplingCount( Object in_lNurbsSurfaceIndex );

### Parameters

Parameter | Type | Description
--- | --- | ---
NurbsSurfaceIndex | Long | If you get the NurbsSampleCollection from NurbsSurface.NurbsSamples it will use the NurbsSurface from which you requested it by default. If you get it from Geometry.Samples it will take the first surface by default.

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","NurbsSurface")
    set oSurface = oCube.ActivePrimitive.Geometry.Surfaces(0)
    set oSamples = oSurface.NurbsSamples
    logmessage "The number of valid USamplingCoordinate indices is: " & oSamples.USamplingCount