CLR: .Net / Mono / Boo / Otros CLR > VB .NET

 Como Quedaria Esto En Net

(1/1)

Taursoft:
POR FAVOR ALGUIEN SABRIA DECIRME COMO QUEDARIA ESTO EN VISUAL BASIC .NET

ESTO ES EN VISUAL BASIC 6.0

Public Property Get GetMediaID() As String
GetMediaID = m_MediaId
End Property

Y NO SE COMO VA N VISUAL BASIC .NET

ALGUIEN ME LO DICE POR FAVOR

GRACIAS

ROBER.29:
Hola,

Eso quedaría de la siguiente forma:


--- Código: Text ---  Private m_MediaId As String Public Property GetMediaID() As String        Get             return m_MediaId        End Get        Set(ByVal Value As String)             m_MediaId = Value        End Set    End Property   
Saludos.

Taursoft:
y este con un condicional

--- Código: Text --- Public Property Get GetAlbumGenre() As String    GetAlbumGenre = m_Category    If (m_Genre <> "") Then GetAlbumGenre = m_GenreEnd Property  iria asi

--- Código: Text --- Public Property GetAlbumGenre() As String       Get            Return m_Category        End Get       Set            GetAlbumGenre = Value            If (m_Genre <> "") Then GetAlbumGenre = m_Genre        End Set    End Property  gracias saludos

Taursoft:
y este

--- Código: Text --- Public Property Let UseFirstMatch(FirstMatch As Boolean)    m_UseFirstMatch = FirstMatchEnd Property  
IRIA ASI?


--- Código: Text --- Public Property UseFirstMatch(ByVal FirstMatch As Boolean)        Get            Return m_UseFirstMatch         End Get        Set(ByVal FirstMatch As Boolean)            m_UseFirstMatch = FirstMatch        End Set    End Property  

GRACIAS POR ACLARARME ESTAS DUDILLAS
SALUDOS

Navegación

[0] Índice de Mensajes

Ir a la versión completa