GetNewName 方法
Assists in creating new consecutive numbered names that start with namePrefix.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Public Function GetNewName ( _
namePrefix As String _
) As String
'用途
Dim instance As AttributeRelationshipCollection
Dim namePrefix As String
Dim returnValue As String
returnValue = instance.GetNewName(namePrefix)
public string GetNewName(
string namePrefix
)
public:
String^ GetNewName(
String^ namePrefix
)
member GetNewName :
namePrefix:string -> string
public function GetNewName(
namePrefix : String
) : String
參數
- namePrefix
型別:System. . :: . .String
A string with the prefix for the numbered names.
傳回值
型別:System. . :: . .String
A System.String with the new name.
備註
GetNewName will first return namePrefix, if it hasn't been used. Otherwise, it will return namePrefix1, namePrefix2, and so on.