LevelPropertyCollection.Find 方法
依據名稱,從集合取得指定的 LevelProperty。
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public Function Find ( _
name As String _
) As LevelProperty
'用途
Dim instance As LevelPropertyCollection
Dim name As String
Dim returnValue As LevelProperty
returnValue = instance.Find(name)
public LevelProperty Find(
string name
)
public:
LevelProperty^ Find(
String^ name
)
member Find :
name:string -> LevelProperty
public function Find(
name : String
) : LevelProperty
參數
- name
型別:String
要尋找之 LevelProperty 的名稱。
傳回值
型別:Microsoft.AnalysisServices.AdomdServer.LevelProperty
如果找到,則為具有指定名稱的 LevelProperty,否則為 nullnull 參考 (在 Visual Basic 中為 Nothing)。
備註
如果找不到物件,Find 會傳回 nullnull 參考 (在 Visual Basic 中為 Nothing),而如果找不到物件,Item 屬性則會擲回例外狀況。