Share via


IndexBuffer.SetData Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Locks, sets, and unlocks a range of vertex data.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Sub SetData ( _
    data As Object, _
    lockAtOffset As Integer, _
    flags As LockFlags _
)
'Usage
Dim instance As IndexBuffer
Dim data As Object
Dim lockAtOffset As Integer
Dim flags As LockFlags

instance.SetData(data, lockAtOffset, flags)
public void SetData(
    Object data,
    int lockAtOffset,
    LockFlags flags
)
public:
void SetData(
    Object^ data, 
    int lockAtOffset, 
    LockFlags flags
)
member SetData : 
        data:Object * 
        lockAtOffset:int * 
        flags:LockFlags -> unit 

Parameters

  • data
    Type: System.Object
    An object containing the data copy into the index buffer. This is typically an array of Int32 or Int16.
  • lockAtOffset
    Type: System.Int32
    Offset to set in the index buffer. To set the entire buffer, set this parameter to 0.

Exceptions

Exception Condition
InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Remarks

The Discard and NoOverwrite fields for a LockFlags are valid only with buffers created with the Dynamic member of the Usage enumeration.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

IndexBuffer Class

IndexBuffer Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace