This document is archived and information here might be outdated.  Recommended version.


INetSchema.WeightByName Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetSchema.WeightByName Property

Network weight corresponding to the specified name.

[Visual Basic .NET]
Public Function get_WeightByName ( _
    ByVal WeightName As String _
) As INetWeight
[C#]
public INetWeight get_WeightByName (
    string WeightName
);
[C++]
HRESULT get_WeightByName(
  BSTR WeightName,
  INetWeight** networkWeight
);
[C++]

Parameters WeightName [in] WeightName is a parameter of type BSTR networkWeight [out, retval]
networkWeight is a parameter of type INetWeight

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

WeightByName returns the INetWeight object identified by the input string value.

If the weight name specified cannot be found, then a Null pointer is returned.

See Also

INetSchema Interface

.NET Related Topics

NetworkAnalysis