DeleteAttribute Method

NI DataSocket

DeleteAttribute Method

Syntax

CWData.DeleteAttribute Name

Purpose

Deletes existing attributes.

Remarks

If the CWData object is owned by a CWDataSocket and the CWDataSocket is connected to a data target in a write access mode, deleting an attribute triggers the CWDataSocket.Update method. If the CWData is owned by a CWDataSocket, deleting an attribute sets the CWDataSocket.DataUpdated property to True.

Parameters

Name As Variant

Attribute to delete.

Example

'Delete an attribute 
CWDataSocket1.Data.DeleteAttribute("SampleRate")

See Also

GetAttribute

HasAttribute