第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

VB.NET的隱藏功能?

VB.NET的隱藏功能?

烙印99 2019-09-18 10:30:09
我已經(jīng)學(xué)習(xí)了很多瀏覽C#的隱藏功能,當(dāng)我找不到類(lèi)似于VB.NET的東西時(shí),我感到很驚訝。那么它的一些隱藏或鮮為人知的特征是什么?
查看完整描述

3 回答

?
海綿寶寶撒

TA貢獻(xiàn)1809條經(jīng)驗(yàn) 獲得超8個(gè)贊

該Exception When條款基本上未知。


考慮一下:


Public Sub Login(host as string, user as String, password as string, _

                            Optional bRetry as Boolean = False)

Try

   ssh.Connect(host, user, password)

Catch ex as TimeoutException When Not bRetry

   ''//Try again, but only once.

   Login(host, user, password, True)

Catch ex as TimeoutException

   ''//Log exception

End Try

End Sub


查看完整回答
反對(duì) 回復(fù) 2019-09-18
?
慕森王

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超3個(gè)贊

你有沒(méi)有注意到Like比較運(yùn)算符?



    Dim b As Boolean = "file.txt" Like "*.txt"


更多來(lái)自MSDN


Dim testCheck As Boolean


' The following statement returns True (does "F" satisfy "F"?)'

testCheck = "F" Like "F"


' The following statement returns False for Option Compare Binary'

'    and True for Option Compare Text (does "F" satisfy "f"?)'

testCheck = "F" Like "f"


' The following statement returns False (does "F" satisfy "FFF"?)'

testCheck = "F" Like "FFF"


' The following statement returns True (does "aBBBa" have an "a" at the'

'    beginning, an "a" at the end, and any number of characters in '

'    between?)'

testCheck = "aBBBa" Like "a*a"


' The following statement returns True (does "F" occur in the set of'

'    characters from "A" through "Z"?)'

testCheck = "F" Like "[A-Z]"


' The following statement returns False (does "F" NOT occur in the '

'    set of characters from "A" through "Z"?)'

testCheck = "F" Like "[!A-Z]"


' The following statement returns True (does "a2a" begin and end with'

'    an "a" and have any single-digit number in between?)'

testCheck = "a2a" Like "a#a"


' The following statement returns True (does "aM5b" begin with an "a",'

'    followed by any character from the set "L" through "P", followed'

'    by any single-digit number, and end with any character NOT in'

'    the character set "c" through "e"?)'

testCheck = "aM5b" Like "a[L-P]#[!c-e]"


' The following statement returns True (does "BAT123khg" begin with a'

'    "B", followed by any single character, followed by a "T", and end'

'    with zero or more characters of any type?)'

testCheck = "BAT123khg" Like "B?T*"


' The following statement returns False (does "CAT123khg" begin with'

'    a "B", followed by any single character, followed by a "T", and'

'    end with zero or more characters of any type?)'

testCheck = "CAT123khg" Like "B?T*"


查看完整回答
反對(duì) 回復(fù) 2019-09-18
  • 3 回答
  • 0 關(guān)注
  • 480 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)