შენიშვნა
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ შესვლა ან შეცვალოთ დირექტორიები.
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
The GetValues and GetNames methods allow you to determine the strings and values associated with enumeration members.
To determine the string associated with an enumeration
Use the GetNames method to retrieve the strings associated with the enumeration members. This example declares an enumeration,
flavorEnum, then uses the GetNames method to display the strings associated with each member.Public Enum flavorEnum salty sweet sour bitter End Enum Private Sub TestMethod() MsgBox("The strings in the flavorEnum are:") Dim i As String For Each i In [Enum].GetNames(GetType(flavorEnum)) MsgBox(i) Next End Sub
See also
ითანამშრომლეთ ჩვენთან GitHub-ზე
ამ შინაარსის წყარო შეგიძლიათ იხილოთ GitHub-ზე, სადაც ასევე შეგიძლიათ შექმნათ და გადახედოთ საკითხებს და გაიყვანოთ მოთხოვნები. დამატებითი ინფორმაციისთვის იხილეთ ჩვენი კონტრიბუტორთა სახელმძღვანელო.