|   | MeasurementKeyTryCreateOrUpdate(Guid, String, UInt64, MeasurementKey) Method | 
        
        
        
        Namespace: GSF.TimeSeriesAssembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.257-beta
 Syntax
Syntaxpublic static bool TryCreateOrUpdate(
	Guid signalID,
	string source,
	ulong id,
	out MeasurementKey key
)
Public Shared Function TryCreateOrUpdate ( 
	signalID As Guid,
	source As String,
	id As ULong,
	<OutAttribute> ByRef key As MeasurementKey
) As Boolean
public:
static bool TryCreateOrUpdate(
	Guid signalID, 
	String^ source, 
	unsigned long long id, 
	[OutAttribute] MeasurementKey^% key
)
static member TryCreateOrUpdate : 
        signalID : Guid * 
        source : string * 
        id : uint64 * 
        key : MeasurementKey byref -> bool GSF.TimeSeries.MeasurementKey.TryCreateOrUpdate = function(signalID, source, id, key);
Parameters
- signalID  Guid
- Guid ID of associated signal, if defined.
- source  String
- Source of the measurement that this MeasurementKey represents (e.g., name of archive).
- id  UInt64
- Numeric ID of the measurement that this MeasurementKey represents.
- key  MeasurementKey
- The measurement key that was created or updated or Undefined.
Return Value
BooleanTrue if the measurement key was successfully created or updated, false otherwise.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentException | signalID cannot be empty. | 
| ArgumentNullException | source cannot be null. | 
 See Also
See Also